This backend project is designed to work with Vercel's serverless environment. Here's a quick guide to get you started:
- Development: Use
.env
file CORS_ORIGIN=http://localhost:3000 - Production: Set in Vercel dashboard CORS_ORIGIN=https://the-frontend-domain.com
npx vercel --prod
Backend URL: https://nisa-invest-tfb-be.vercel.app/
It will also deploy when pushing code to the branch 'deployed'
npx supabase start
npx supabase stop
npx supabase db reset
http://localhost:54323
-
Generate access token at https://app.supabase.com
-
Set environment variable:
export SUPABASE_ACCESS_TOKEN=your_new_token_here
-
Link with remote DB:
npx supabase link --project-ref xzzacivebczssoporkmz
npx supabase db reset --linked
See test files for each category: