GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(site): ship the link-card videos with the site's static assets by adamdotdevin · Pull Request #63459 · anomalyco/opencode

Conversation

@adamdotdevin

@adamdotdevin adamdotdevin commented Nov 12, 2026

Copy link
Copy Markdown
Member

Issue for this PR

Follow-up to #63401.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

#63401 added og:video link videos, but every one 404s: script/og.ts writes them to public/og/, and script/build.ts drops every .mp4 from the Worker's static assets because heavy media lives in the files bucket. On dev.opencode.ai, /og/home-98637499f6.png is 200 and /og/home-ec8331a4d6.mp4 is 404.

The build now keeps og/'s videos. They're 13 files of 25 to 85 kB that ship and change with the cards naming them, so the files bucket's upload step would only add a way for them to drift. MEDIA.md notes the exception.

How did you verify your code works?

Production build of services/site: dist/assets/og/ has all 13 videos and no other .mp4 reaches the assets. bun test: 242 pass.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@adamdotdevin
fix(site): ship the link-card videos with the site's static assets
8c49cab
opencodejr[bot]
opencodejr Bot reviewed Nov 12, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks right. I ran the base and new cp filters from script/build.ts over a generated public/og/ with some extra media files added outside og/. The base copies none of the 13 link-card videos (so they 404); this change copies exactly those 13 and still drops everything else, including a sibling og-like/ folder. bun test in services/site passes (242) and tsc --noEmit is clean. I didn't run a full production build or deploy.

Public API: unchanged (build script and docs only).

One small gap, not blocking: script/upload-media.ts still scans everything in public/ that matches mediaFile, so once og.ts has run locally, --manifest and --run will add the og/ videos to media-manifest.txt and upload them to the files bucket. That's the drift the description wants to avoid. Applying the same og/ exclusion there would keep the exception in one place.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@adamdotdevin
fix(site): keep the link-card videos out of the media upload too
2422ee2
opencodejr[bot]
opencodejr Bot reviewed Nov 12, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My earlier point is addressed: inBucket() in src/lib/media.ts now leaves out og/, and both the build and upload-media.ts use it, so the link-card videos ship as static assets and never reach the bucket or media-manifest.txt. I re-ran the copy filter over a generated public/og/ with extra media added: exactly the 13 og/*.mp4 ship and everything else is still dropped. The upload-media.ts dry run skips the og/ videos. bun test (242 pass) and tsc --noEmit are clean. I didn't run a full production build or deploy.

Public API: unchanged.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@adamdotdevin
adamdotdevin merged commit 9d236eb into dev Nov 12, 2026
11 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@adamdotdevin
adamdotdevin deleted the og-video-assets branch November 12, 2026 10:56
@iamdavidhill iamdavidhill mentioned this pull request Nov 12, 2026
chore(site): serve OG Studio link cards from the files bucket, add docs previews #63560
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@adamdotdevin
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.