If your current Supabase project is unavailable, follow these steps to create a new one:
- Go to supabase.com
- Click "New Project"
- Choose your organization
- Enter project details:
- Name: SehatScan AI
- Database Password: Choose a strong password (save it!)
- Region: Choose closest to your location
- Wait for project creation (2-3 minutes)
- Go to Project Settings → Database
- Under Connection string, copy the URI format
- Replace
[YOUR-PASSWORD]with your actual password - URL-encode special characters:
%→%25@→%40#→%23+→%2B(space) →%20
Update your frontend/.env file:
# Replace with your new connection strings
DATABASE_URL="postgresql://postgres.[new-project-ref]:[encoded-password]@aws-0-[region].pooler.supabase.com:6543/postgres?pgbouncer=true"
DIRECT_URL="postgresql://postgres.[new-project-ref]:[encoded-password]@aws-0-[region].pooler.supabase.com:5432/postgres"
# Update Supabase URLs
NEXT_PUBLIC_SUPABASE_URL="https://[new-project-ref].supabase.co"
NEXT_PUBLIC_SUPABASE_ANON_KEY="[new-anon-key]"cd frontend
npx prisma migrate deploy
npx prisma generatenpx prisma db pullIf successful, restart your development server:
npm run dev