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:
Aymeric Rabot
2026-02-18 01:48:53 -05:00
co-authored by Claude Opus 4.6
parent f1077ad1c8
commit aa27e0dd7a
24 changed files with 82 additions and 57 deletions
+10 -9
View File
@@ -3,7 +3,7 @@
"private": true,
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev",
"dev": "set -a && . ./.env 2>/dev/null; set +a; turbo run dev --env-mode=loose",
"lint": "biome lint",
"lint:fix": "biome lint --write",
"format": "biome format --write",
@@ -11,10 +11,11 @@
"check": "biome check",
"check:fix": "biome check --write",
"check-types": "turbo run check-types",
"db:start": "cd packages/db && supabase start",
"db:stop": "cd packages/db && supabase stop",
"db:reset": "cd packages/db && supabase db reset",
"db:status": "cd packages/db && supabase status"
"kill": "lsof -ti:3002 | xargs kill -9 2>/dev/null || echo 'No processes found on port 3002'",
"db:start": "supabase start",
"db:stop": "supabase stop",
"db:reset": "supabase db reset",
"db:status": "supabase status"
},
"dependencies": {
"@react-three/drei": "^10.7.7",
@@ -22,14 +23,14 @@
"three": "^0.182.0",
"three-bvh-csg": "^0.0.17",
"three-mesh-bvh": "^0.9.8",
"zustand": "^5.0.10"
"zustand": "^5.0.11"
},
"devDependencies": {
"@biomejs/biome": "^2.3.13",
"@biomejs/biome": "^2.4.2",
"supabase": "2.75.3",
"turbo": "^2.8.1",
"turbo": "^2.8.9",
"typescript": "5.9.2",
"ultracite": "^7.1.1"
"ultracite": "^7.2.3"
},
"engines": {
"node": ">=18"