Skip to main content

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 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

EndpointPurpose
/healthBasic health check
/readyReadiness probe
/liveLiveness probe

Troubleshooting

Frontend won't start

cd frontend
npm install
npm run dev

Backend connection issues

  1. Check SUPABASE_DATABASE_URL is set correctly
  2. Verify network/firewall rules
  3. Check logs for connection errors

Pipeline execution fails

  1. Check Temporal is running: kubectl get pods -l app=temporal
  2. Verify Redis is accessible
  3. Check pipeline logs in observability