chore(workspace): DEV origin on the private network — scripts/dev-env.sh (FAUNOSTEO_DEV_HOST detected or set), Supabase CLI wrapper, pnpm dev on the LAN address, config.toml URLs via env(); ENVIRONMENTS.md (identity Faunosteo / faunosteo.com, DEV / STAGING / PROD, exposure table, owner procedure)
The owner tests from other devices of the private network: every test surface is addressed by the machine's LAN address, never 127.0.0.1 or localhost, never hard-coded. scripts/dev-env.sh decides the host once (hostname -I, FAUNOSTEO_DEV_HOST override, production hosts refused); scripts/supabase.sh exports it for every CLI call (pnpm db:*, pnpm supabase) because config.toml now reads api.external_url (mail links), auth.site_url and studio.api_url with env(); scripts/dev.sh = pnpm dev on that origin, pnpm dev:offline keeps the local tool alone; dev-lan.sh removed. Verified: GoTrue API_EXTERNAL_URL and Studio SUPABASE_PUBLIC_URL on the LAN address, a signup mail linking to http://<lan>:54321/auth/v1/verify, the four published ports answering from a separate Docker network, and the 10-step procedure in headless Chromium at the LAN origin with every request URL audited (no 127.0.0.1 / localhost).
This commit is contained in:
1 parent
f5865f073f
commit
dd4c35c061
14 files changed
+228
-41
No files matched your search
+9
-8
@@ -10,8 +10,8 @@
|
||||
"pnpm": ">=10.13 <11"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "pnpm --filter @faunosteo/app dev",
|
||||
"dev:lan": "bash scripts/dev-lan.sh",
|
||||
"dev": "bash scripts/dev.sh",
|
||||
"dev:offline": "pnpm --filter @faunosteo/app dev",
|
||||
"preview": "pnpm --filter @faunosteo/app preview",
|
||||
"build": "pnpm -r build",
|
||||
"typecheck": "pnpm -r typecheck",
|
||||
@@ -23,12 +23,13 @@
|
||||
"check:all": "bash scripts/check-all.sh",
|
||||
"report:compare": "pnpm --filter @faunosteo/app report:compare",
|
||||
"import:equine": "pnpm --filter @faunosteo/anatomy import:equine",
|
||||
"db:start": "supabase start",
|
||||
"db:stop": "supabase stop",
|
||||
"db:reset": "supabase db reset",
|
||||
"db:test": "supabase test db",
|
||||
"db:types": "supabase gen types typescript --local --schema public | prettier --parser typescript > packages/supabase/src/database.types.ts",
|
||||
"db:types:check": "supabase gen types typescript --local --schema public | prettier --parser typescript | diff - packages/supabase/src/database.types.ts",
|
||||
"supabase": "bash scripts/supabase.sh",
|
||||
"db:start": "bash scripts/supabase.sh start",
|
||||
"db:stop": "bash scripts/supabase.sh stop",
|
||||
"db:reset": "bash scripts/supabase.sh db reset",
|
||||
"db:test": "bash scripts/supabase.sh test db",
|
||||
"db:types": "bash scripts/supabase.sh gen types typescript --local --schema public | prettier --parser typescript > packages/supabase/src/database.types.ts",
|
||||
"db:types:check": "bash scripts/supabase.sh gen types typescript --local --schema public | prettier --parser typescript | diff - packages/supabase/src/database.types.ts",
|
||||
"assets:upload": "pnpm --filter @faunosteo/supabase assets:upload",
|
||||
"build:preview": "SHEET_BUNDLE=draft pnpm --filter @faunosteo/app build",
|
||||
"preview:draft": "SHEET_BUNDLE=draft pnpm --filter @faunosteo/app build && pnpm --filter @faunosteo/app preview",
|
||||
|
||||
Reference in new issue
Block a user