refactor: move supabase config to repo root, fix port and env setup
- Move supabase/ from packages/db/ to repo root for simpler CLI usage - Use custom ports (553xx) to avoid conflicts with other local Supabase instances - Add --env-mode=loose to turbo dev so root .env vars reach Next.js - Remove hardcoded --port 3000 from next dev (reads PORT env var instead) - Add .env.example with Supabase env var placeholders - Add supabase local state dirs to .gitignore Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
f1077ad1c8
commit
aa27e0dd7a
@@ -0,0 +1,8 @@
|
||||
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=your_google_maps_api_key
|
||||
PORT=3000
|
||||
POSTGRES_URL=postgresql://postgres:postgres@127.0.0.1:55322/postgres
|
||||
|
||||
# Run `bun db:start` then `bunx supabase status -o env` to get these values
|
||||
NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:55321
|
||||
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
|
||||
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key
|
||||
Reference in New Issue
Block a user