Skip to content

Infra: Cloudflare Pages deployment + Supabase env + domain #20

Description

@Jose-Gael-Cruz-Lopez

Context

Ship the site/ SPA on Cloudflare Pages. Depends on #14 building.

What to build

  1. Cloudflare Pages project connected to this repo:
    • Root directory: site
    • Build command: npm run build
    • Output directory: dist
  2. Env vars (Production + Preview): VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY (anon key only — never the service key).
  3. Auto-deploy on push to main; preview deploys on PRs.
  4. SPA routing: Vite output is a single page, so default Pages behavior is fine (add _redirects with /* /index.html 200 only if client routing is added later).
  5. Custom domain matching the repo name (e.g. hackhq.\*) — can be a follow-up.

Acceptance


Part of #10 · Design spec · Repo data lives in .github/scripts/listings.json

Metadata

Metadata

Assignees

Labels

infraDeploy / CI / Cloudflare

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions