feat: migrate app to local Fastify and Postgres stack
Replace Supabase auth and search runtime with a local Fastify API, PostgreSQL/PostGIS schema, and local session handling. Scaffold the worker and deep-research foundations while keeping the existing research, dashboard, and map flows running on the new backend.
This commit is contained in:
+10
-8
@@ -1,11 +1,13 @@
|
||||
# Frontend env vars for the Vite app
|
||||
VITE_SUPABASE_URL="http://YOUR_SUPABASE_API_HOST"
|
||||
VITE_SUPABASE_ANON_KEY="YOUR_SUPABASE_ANON_KEY"
|
||||
VITE_API_BASE_URL="http://localhost:4000/api"
|
||||
VITE_GOOGLE_MAPS_PLATFORM_KEY="YOUR_BROWSER_MAPS_KEY"
|
||||
|
||||
# Backend / Edge Function secrets
|
||||
# Do not expose these in the browser.
|
||||
SUPABASE_URL="http://YOUR_SUPABASE_API_HOST"
|
||||
SUPABASE_ANON_KEY="YOUR_SUPABASE_ANON_KEY"
|
||||
SUPABASE_SERVICE_ROLE_KEY="YOUR_SUPABASE_SERVICE_ROLE_KEY"
|
||||
GOOGLE_MAPS_SERVER_KEY="YOUR_SERVER_MAPS_KEY"
|
||||
# Local backend env vars
|
||||
DATABASE_URL="postgres://postgres:postgres@localhost:5432/leads4less"
|
||||
COOKIE_SECRET="CHANGE_ME_IN_LOCAL_ENV"
|
||||
APP_HOST="0.0.0.0"
|
||||
APP_PORT="4000"
|
||||
APP_ORIGIN="http://localhost:3000"
|
||||
PG_BOSS_SCHEMA="pgboss"
|
||||
SESSION_TTL_DAYS="30"
|
||||
GOOGLE_MAPS_SERVER_KEY="YOUR_SERVER_MAPS_KEY"
|
||||
|
||||
Reference in New Issue
Block a user