mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
fix(ci): build admin SPA during wrangler deploy
Cloudflare Workers Build runs "wrangler deploy" on a fresh checkout, where admin/dist (a gitignored symlink) does not exist, so the deploy failed with a missing assets.directory. - add build.command to generate the Nuxt SPA before bundling - point assets.directory at the real ./admin/.output/public output instead of the gitignored admin/dist symlink
This commit is contained in:
1 file changed
+4
-1
+4
-1
@@ -6,8 +6,11 @@
|
|||||||
"vars": {
|
"vars": {
|
||||||
"DISCORD_GATEWAY_ENABLED": "true"
|
"DISCORD_GATEWAY_ENABLED": "true"
|
||||||
},
|
},
|
||||||
|
"build": {
|
||||||
|
"command": "cd admin && bun install --frozen-lockfile && bun run generate"
|
||||||
|
},
|
||||||
"assets": {
|
"assets": {
|
||||||
"directory": "./admin/dist",
|
"directory": "./admin/.output/public",
|
||||||
"binding": "ASSETS",
|
"binding": "ASSETS",
|
||||||
"run_worker_first": true,
|
"run_worker_first": true,
|
||||||
"not_found_handling": "single-page-application"
|
"not_found_handling": "single-page-application"
|
||||||
|
|||||||
Reference in new issue
Block a user