Architecture
SENTi-radar consists of two main deployment targets:- Frontend (Static): Vite-built React SPA hosted on static hosting platforms
- Backend (Edge Functions): Deno-based Supabase edge functions for data scraping and analysis
Prerequisites
Before deploying, ensure you have:Supabase project created
Sign up at supabase.com and create a new project
Deployment Platforms
Frontend
The frontend can be deployed to any static hosting platform:- Lovable (recommended) - Zero-config deployment
- Vercel - Automatic builds from Git
- Netlify - Continuous deployment
- Cloudflare Pages - Global edge network
- AWS S3 + CloudFront - Enterprise-grade hosting
Backend
Edge functions run on Supabase Edge Runtime (powered by Deno Deploy):- Global edge network
- Zero cold starts
- Automatic scaling
- Built-in CORS handling
Quick Deploy
Configure environment variables
See Environment & Secrets for complete setup
Deploy edge functions
Deploy frontend
Environment Overview
Frontend Environment
Vite env vars (VITE_*)
- Supabase URL & keys
- Scrape.do token
- YouTube API key
- Gemini/Groq API keys
Edge Function Secrets
Supabase secrets
- SCRAPE_DO_TOKEN
- YOUTUBE_API_KEY
- GEMINI_API_KEY
- SUPABASE_SERVICE_ROLE_KEY
Production Checklist
Before going live, verify:- All environment variables are set correctly
- Edge functions are deployed and accessible
- Database migrations are applied
- CORS headers are configured in
supabase/config.toml - API rate limits are configured
- Error monitoring is enabled (Sentry, LogRocket, etc.)
- SSL/TLS certificates are active
- CDN caching is configured for static assets
Next Steps
Frontend Deployment
Deploy the Vite React application
Edge Functions
Deploy Supabase edge functions
Environment Setup
Configure secrets and API keys