Skip to content

chore(storage): move brief archive from Spaces to Cloudflare R2 - #2

Merged
Jubstaaa merged 1 commit into
mainfrom
chore/r2-storage
Oct 14, 2026
Merged

Jubstaaa merged 1 commit into
mainfrom
chore/r2-storage

Conversation

@Jubstaaa

Copy link
Copy Markdown
Owner

Moves the weekly JSON archive from DigitalOcean Spaces to Cloudflare R2, part of dropping the Spaces subscription.

  • Publishing reads STORAGE_KEY, STORAGE_SECRET, STORAGE_ENDPOINT (set in Infisical brief-site/prod, already synced to Actions secrets). The token is scoped to the brief-weekly bucket only.
  • The site reads from https://cdn.brief.ilkerbalcilar.com (R2 custom domain).
  • R2 has no object ACLs, so the public-read ACL is dropped; the custom domain is what makes the bucket public.
  • Existing objects were copied from Spaces and verified (11/11).

Checked locally: lint, type-check, tests, a full next build against R2, and a write/list/read/delete round trip with the same client config.

After merge: remove SPACES_KEY / SPACES_SECRET from Infisical.

Publishing now needs STORAGE_KEY, STORAGE_SECRET and STORAGE_ENDPOINT; the
site reads from cdn.brief.ilkerbalcilar.com. R2 has no object ACLs, so the
public-read ACL is dropped — the custom domain is what makes the bucket public.
@Jubstaaa
Jubstaaa merged commit b2a0a13 into main Oct 14, 2026
3 checks passed
Jubstaaa added a commit that referenced this pull request Oct 14, 2026
* Revert "feat(deploy): serve brief from Workers static assets instead of the droplet (#3)"

This reverts commit 134c81c.

* Revert "chore(storage): move brief archive from Spaces to Cloudflare R2 (#2)"

This reverts commit b2a0a13.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant