BB Manager is deployed as a static SPA on Vercel.
Set these in the Vercel project for Preview and Production:
VITE_SUPABASE_URL="https://<your-project-ref>.supabase.co"
VITE_SUPABASE_ANON_KEY="<your-public-anon-key>"- Framework preset:
Vite - Build command:
npm run build - Output directory:
dist
vercel.json already rewrites all routes to / so the SPA can handle navigation client-side.
In Supabase Auth URL configuration:
- Set
Site URLto the canonical production URL. - Add local development and preview URLs to
Additional Redirect URLsas needed.
- Confirm Vercel env vars are present for the target environment.
- Deploy from the main branch or the intended release branch.
- Run
npm run check:db-contractagainst the target environment credentials or confirm the CI run passed with the intended deployment inputs. - Verify sign-in works for manually provisioned users.
- Verify the production users have the expected roles in
profiles. - Verify
settingshas seeded rows for bothcompanyandjunior. - Smoke-test auth, section settings persistence, member CRUD, marks entry, and dashboard behavior against the live backend.
- Treat CI smoke results as client-contract checks only; use Supabase inspection for live RLS policy verification.