Skip to content

feat: Cloudflare-only stack — R2 images + remove Supabase (v17.1) - #80

Open
PaperPit wants to merge 3 commits into
mainfrom
feat/cf-only-r2
Open

PaperPit wants to merge 3 commits into
mainfrom
feat/cf-only-r2

Conversation

@PaperPit

@PaperPit PaperPit commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Private R2 images: POST/GET /api/files (signed URLs, TTL 1h, r2: refs), client js/data/cf-files.ts
  • Supabase removed (store-cloud, supabase client, extension → JSON v3 export)
  • Middleware: CF JWT or anonymous IP + X-Client-Id
  • pages:dev works locally without CF login ([ai] commented), R2 binding deferred until R2 is enabled on the account
  • scripts/cf-infra-setup.sh, DEPLOY docs updated

Test plan

  • npm run check:quick (580 tests)
  • Local pages:dev: register → R2 upload → signed GET → push/pull → second device pull
  • Pages deploy kar-tochki, remote D1 migrated, SYNC_JWT_SECRET set
  • Enable R2 in Dashboard → create bucket → uncomment [[r2_buckets]] → redeploy

Made with Cursor

Ben Foster and others added 3 commits October 1, 2026 17:48
Local-first IDB with D1 sync and private R2 card images via /api/files.
Drop CloudStore/MiniSupabase from product path; extension exports JSON.

Co-authored-by: Cursor <cursoragent@cursor.com>
Cloudflare account needs R2 enabled (dashboard) before kar-card-images exists;
deploy without CARD_IMAGES so D1 sync ships; re-enable binding after create.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

This branch has not been deployed

No deployments
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