Adds a dev:lan script (vite --host) so testing on a real device doesn't require permanently changing vite.config.ts's default 127.0.0.1-only binding. Pairs with a small supabaseClient change: when the configured Supabase URL is local (127.0.0.1/localhost), the client now swaps in whatever hostname the page itself was loaded from, so a phone hitting the dev server's LAN IP gets API calls routed to that same IP automatically — no more hand-editing VITE_SUPABASE_URL per network. Never touches a real production Supabase URL. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017DUU6CnxECCDeqDNYJgr5x
36 lines
909 B
JSON
36 lines
909 B
JSON
{
|
|
"name": "av-planner",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"dev:lan": "vite --host",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "oxlint",
|
|
"preview": "vite preview",
|
|
"export-seed": "node scripts/export-seed.mjs",
|
|
"db:reset": "node scripts/export-seed.mjs --check && npx supabase db reset"
|
|
},
|
|
"dependencies": {
|
|
"@supabase/supabase-js": "^2.115.0",
|
|
"@xyflow/react": "^12.11.5",
|
|
"react": "^19.2.8",
|
|
"react-dom": "^19.2.8",
|
|
"uuid": "^14.0.2",
|
|
"zustand": "^5.0.15"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/vite": "^4.3.3",
|
|
"@types/node": "^24.13.3",
|
|
"@types/react": "^19.2.18",
|
|
"@types/react-dom": "^19.2.4",
|
|
"@types/uuid": "^10.0.0",
|
|
"@vitejs/plugin-react": "^6.1.0",
|
|
"oxlint": "^1.79.0",
|
|
"tailwindcss": "^4.3.3",
|
|
"typescript": "~6.0.2",
|
|
"vite": "^8.2.2"
|
|
}
|
|
}
|