2d55d40405
`pnpm dev` never started the backend: the server dev script ran `node --experimental-strip-types src/index.ts`, but type-stripping doesn't rewrite the `.js` import specifiers to `.ts`, so it crashed on ERR_MODULE_NOT_FOUND. With no backend on :3000, the Vite proxy waited the full timeout on every /api call — the "Loading…" and "Signing in…" hangs. - server dev script -> `tsx watch` (resolves .js->.ts, has built-in watch). - Vite proxy targets 127.0.0.1 (not "localhost") so it never tries IPv6 ::1 first and stall — the backend binds IPv4. Belt-and-suspenders for the same hang, notably under WSL2 mirrored networking. Verified: pnpm dev boots the backend; health/auth/me ~5ms; browser login is instant (was minutes).
34 lines
894 B
JSON
34 lines
894 B
JSON
{
|
|
"name": "@parking/server",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "tsc -b",
|
|
"dev": "tsx watch --env-file-if-exists=.env src/index.ts",
|
|
"start": "node --env-file-if-exists=.env dist/index.js",
|
|
"seed-admin": "node --env-file-if-exists=.env scripts/seed-admin.mjs",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@fastify/cookie": "^11.0.2",
|
|
"@fastify/cors": "11.2.0",
|
|
"@fastify/jwt": "10.1.0",
|
|
"@fastify/static": "9.1.3",
|
|
"@parking/db": "workspace:*",
|
|
"@parking/devices": "workspace:*",
|
|
"@parking/shared": "workspace:*",
|
|
"bcrypt": "6.0.0",
|
|
"fastify": "5.8.5",
|
|
"fastify-plugin": "6.0.0",
|
|
"uhppoted": "0.9.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bcrypt": "6.0.0",
|
|
"@types/node": "25.9.3",
|
|
"tsx": "4.22.4",
|
|
"typescript": "6.0.3"
|
|
}
|
|
}
|