Spaces:
Running
Running
A newer version of the Gradio SDK is available: 6.19.0
Deployment
Backend
Build command:
npm install
npm run build
Start command:
npm start
Required environment variables are listed in backend/.env.example.
Set the Stripe webhook endpoint to:
https://your-backend-domain.com/api/payments/webhook
Supabase
Apply:
backend/supabase/migrations/001_initial_schema.sql
Enable Realtime publication for:
matchesconversationsmessages
Keep the service role key out of the Flutter app. Only the backend receives it.
Flutter Web
cd frontend
flutter pub get
flutter build web `
--dart-define=SUPABASE_URL=https://your-project.supabase.co `
--dart-define=SUPABASE_ANON_KEY=your-anon-key `
--dart-define=BACKEND_URL=https://your-backend-domain.com/api
Deploy frontend/build/web.
Android and iOS
cd frontend
flutter build apk --release `
--dart-define=SUPABASE_URL=https://your-project.supabase.co `
--dart-define=SUPABASE_ANON_KEY=your-anon-key `
--dart-define=BACKEND_URL=https://your-backend-domain.com/api
cd frontend
flutter build ipa --release `
--dart-define=SUPABASE_URL=https://your-project.supabase.co `
--dart-define=SUPABASE_ANON_KEY=your-anon-key `
--dart-define=BACKEND_URL=https://your-backend-domain.com/api