Deployment
What's Already Deployed
- Database migrations (11 tables with RLS)
- Edge Functions (schema-manager, accounts)
- Sample CSV reports
Deployment Steps
1. Configure Supabase Storage
npx supabase storage create csv-imports --public false
2. Deploy Frontend to Vercel
cd frontend
npx vercel --prod
# Add environment variables in Vercel dashboard:
# NEXT_PUBLIC_SUPABASE_URL
# NEXT_PUBLIC_SUPABASE_ANON_KEY
3. Configure Environment Variables
Add these to your deployment platform:
# Supabase
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
# Backend
SUPABASE_DATABASE_URL=postgresql://...
SUPABASE_SERVICE_ROLE_KEY=...
TEMPORAL_HOST=temporal:7233
REDIS_HOST=redis:6379
Infrastructure Options
Docker (Recommended for Backend)
docker build -t sensyze-dataflow .
docker run -d \
--env-file .env \
-p 8000:8000 \
sensyze-dataflow
Kubernetes
kubectl apply -f deploy/k8s/
See Kubernetes Deployment for detailed instructions.
Health Checks
| Endpoint | Purpose |
|---|---|
/health | Basic health check |
/ready | Readiness probe |
/live | Liveness probe |
Troubleshooting
Frontend won't start
cd frontend
npm install
npm run dev
Backend connection issues
- Check
SUPABASE_DATABASE_URLis set correctly - Verify network/firewall rules
- Check logs for connection errors
Pipeline execution fails
- Check Temporal is running:
kubectl get pods -l app=temporal - Verify Redis is accessible
- Check pipeline logs in observability