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).
51 lines
2.5 KiB
JSON
51 lines
2.5 KiB
JSON
{
|
|
"name": "faunosteo",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Faunosteo monorepo: private app (apps/app), future public site, worker and shared packages",
|
|
"license": "MIT",
|
|
"packageManager": "pnpm@10.13.1",
|
|
"engines": {
|
|
"node": ">=22.12 <25",
|
|
"pnpm": ">=10.13 <11"
|
|
},
|
|
"scripts": {
|
|
"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",
|
|
"test": "pnpm --filter @faunosteo/app test",
|
|
"test:run": "pnpm -r test:run",
|
|
"lint": "pnpm -r lint",
|
|
"format": "prettier --write .",
|
|
"check": "pnpm typecheck && pnpm test:run && pnpm lint && pnpm build",
|
|
"check:all": "bash scripts/check-all.sh",
|
|
"report:compare": "pnpm --filter @faunosteo/app report:compare",
|
|
"import:equine": "pnpm --filter @faunosteo/anatomy import:equine",
|
|
"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",
|
|
"rust:builder": "docker build -f docker/rust-builder.Dockerfile -t faunosteo_rust_builder:1.99.0 docker",
|
|
"rust:check": "bash scripts/rust-check.sh",
|
|
"rust:check:docker": "bash docker/rust-run.sh bash scripts/rust-check.sh",
|
|
"wasm:build": "bash scripts/wasm-build.sh",
|
|
"wasm:build:docker": "bash docker/rust-run.sh bash scripts/wasm-build.sh",
|
|
"worker:test": "docker build -f crates/worker/Dockerfile --target test -t faunosteo_worker:test .",
|
|
"worker:image": "docker build -f crates/worker/Dockerfile -t faunosteo_worker:dev .",
|
|
"e2e:avatar": "bash scripts/avatar-e2e.sh"
|
|
},
|
|
"devDependencies": {
|
|
"pnpm": "10.13.1",
|
|
"prettier": "^3.4.2",
|
|
"supabase": "^2.100.0"
|
|
}
|
|
}
|