Deployment

Deploy to Vercel with correct env vars and auth URLs.

Creative Hub deploys to Vercel from the GitHub repo. Production URL: https://fsh-creative-hub.vercel.app

Vercel deploy

  1. Connect jastejSSGitHub/fsh-creative-hub to Vercel
  2. Set environment variables (see below)
  3. Deploy — Next.js build runs next build
bash
npm run validate   # typecheck + build — run before merging

Environment variables

VariableProduction value
NEXT_PUBLIC_SUPABASE_URLSupabase project URL
NEXT_PUBLIC_SUPABASE_ANON_KEYAnon key
NEXT_PUBLIC_SITE_URL
SUPABASE_SERVICE_ROLE_KEYService role (server only)

Production auth

Add production callback URL to Supabase before go-live:

bash
https://fsh-creative-hub.vercel.app/auth/callback

Custom domain

Add a custom domain in Vercel project settings, then update NEXT_PUBLIC_SITE_URL and Supabase redirect URLs to match.