From 533fa33a0dd64967e0642fb49142640ca87adfbb Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Sun, 25 Oct 2026 22:44:40 -0700 Subject: [PATCH] chore(site): publish landing clips to the fanout R2 bucket The fanout-assets bucket was replaced by fanout, which now serves https://assets.fanout.run. Point the clip uploader, its test and the recording notes at it; published URLs are unchanged. --- site/scripts/landing-recordings.md | 4 ++-- site/scripts/upload-clips.mjs | 2 +- site/scripts/upload-clips.test.mjs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/site/scripts/landing-recordings.md b/site/scripts/landing-recordings.md index e22fa529d..bb3238c2e 100644 --- a/site/scripts/landing-recordings.md +++ b/site/scripts/landing-recordings.md @@ -10,7 +10,7 @@ Expected assets (all at 1280 × 800): Encoded videos stay local and are ignored by Git and Docker; PNG posters stay in the repository so Astro can optimize them. Published videos live in the -Cloudflare R2 bucket `fanout-assets`, served at `https://assets.fanout.run/`. +Cloudflare R2 bucket `fanout`, served at `https://assets.fanout.run/`. Each slot stays poster-only until both themes have both video formats in `site/src/data/landing-media.json`. An absent manifest also shows posters. The @@ -111,7 +111,7 @@ It writes VP9 WebM and H.264 MP4 at 1280 × 800 and 30 fps with a two-pass target of about 4 MB per file. It extracts each PNG poster from the final encoded frame. Review the clips and posters, then upload from the repository root with Wrangler logged in to the -account that owns `fanout-assets`: +account that owns `fanout`: ```sh bash site/scripts/upload-clips.sh diff --git a/site/scripts/upload-clips.mjs b/site/scripts/upload-clips.mjs index 75beac087..d6d5cc430 100644 --- a/site/scripts/upload-clips.mjs +++ b/site/scripts/upload-clips.mjs @@ -32,7 +32,7 @@ export function uploadClips({ input = defaultInput, manifestPath = defaultManife const file = join(input, filename); const { key, url } = clipObject(name, format, readFileSync(file)); if (manifest[name]?.[format] === url) continue; - upload(["r2", "object", "put", `fanout-assets/${key}`, "--file", file, + upload(["r2", "object", "put", `fanout/${key}`, "--file", file, "--content-type", `video/${format}`, "--cache-control", "public, max-age=31536000, immutable", "--remote"]); manifest[name] = { ...manifest[name], [format]: url }; } diff --git a/site/scripts/upload-clips.test.mjs b/site/scripts/upload-clips.test.mjs index 19d2699cf..fcb4ec7ca 100644 --- a/site/scripts/upload-clips.test.mjs +++ b/site/scripts/upload-clips.test.mjs @@ -59,7 +59,7 @@ require("node:fs").appendFileSync(process.env.CLIP_UPLOAD_LOG, JSON.stringify(pr const manifest = JSON.parse(readFileSync(manifestPath, "utf8")); for (const [index, [name, format]] of names.flatMap(name => ["mp4", "webm"].map(format => [name, format])).entries()) { const { key, url } = clipObject(name, format, Buffer.from("abc")); - assert.deepEqual(uploads[index], ["r2", "object", "put", `fanout-assets/${key}`, "--file", join(input, `${name}.${format}`), + assert.deepEqual(uploads[index], ["r2", "object", "put", `fanout/${key}`, "--file", join(input, `${name}.${format}`), "--content-type", `video/${format}`, "--cache-control", "public, max-age=31536000, immutable", "--remote"]); assert.equal(manifest[name][format], url); }