fix(deploy): configure pnpm allowBuilds and add Cloudflare deployment setup

This commit is contained in:
2026-08-10 22:37:41 +08:00
parent ddfec7258f
commit 88039d9ebe
8 changed files with 1029 additions and 49 deletions
+5 -8
View File
@@ -12,7 +12,9 @@
"preview": "vite preview",
"test": "vitest run",
"gen:api": "node scripts/gen-api.mjs",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"cf:build": "vite build && node -e \"require('fs').copyFileSync('.output/public/_shell.html','.output/public/index.html')\"",
"cf:deploy": "pnpm cf:build && wrangler deploy"
},
"dependencies": {
"@hookform/resolvers": "^5.4.0",
@@ -58,12 +60,7 @@
"openapi-typescript": "^7.13.0",
"typescript": "^6.0.2",
"vite": "^8.0.0",
"vitest": "^4.1.5"
},
"pnpm": {
"onlyBuiltDependencies": [
"esbuild",
"lightningcss"
]
"vitest": "^4.1.5",
"wrangler": "^4.111.0"
}
}