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
- Connect
jastejSSGitHub/fsh-creative-hubto Vercel - Set environment variables (see below)
- Deploy — Next.js build runs
next build
bash
npm run validate # typecheck + build — run before mergingEnvironment variables
| Variable | Production value |
|---|---|
NEXT_PUBLIC_SUPABASE_URL | Supabase project URL |
NEXT_PUBLIC_SUPABASE_ANON_KEY | Anon key |
NEXT_PUBLIC_SITE_URL | |
SUPABASE_SERVICE_ROLE_KEY | Service role (server only) |
Production auth
Add production callback URL to Supabase before go-live:
bash
https://fsh-creative-hub.vercel.app/auth/callbackCustom domain
Add a custom domain in Vercel project settings, then update NEXT_PUBLIC_SITE_URL and Supabase redirect URLs to match.