fix issue where polaroids come in with a different URL, pull from other bucket

This commit is contained in:
Devin Zuczek
2026-08-04 14:08:39 -04:00
parent db003d54ef
commit dbc6d15ef5
4 changed files with 86 additions and 4 deletions
+8
View File
@@ -17,10 +17,18 @@
"run_worker_first": true
},
// Images are stored as objects in an R2 bucket and streamed back by key.
// `recflare-cdn` (owned by the `cdn` worker, written by `storage`) is bound
// alongside it: uploads posted to `storage` as FileType 3 land under its
// `image/` prefix with no extension, and the client asks THIS worker for them
// by the bare name — see the extensionless-key branch in src/img.app.ts.
"r2_buckets": [
{
"binding": "IMAGES",
"bucket_name": "recflare-img"
},
{
"binding": "CDN_ASSETS",
"bucket_name": "recflare-cdn"
}
],
// Shared `recflare` D1 — the `img` worker owns the `images` metadata table