mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-20 17:13:49 +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": {
|
||||
"DISCORD_GATEWAY_ENABLED": "true"
|
||||
},
|
||||
"build": {
|
||||
"command": "cd admin && bun install --frozen-lockfile && bun run generate"
|
||||
},
|
||||
"assets": {
|
||||
"directory": "./admin/dist",
|
||||
"directory": "./admin/.output/public",
|
||||
"binding": "ASSETS",
|
||||
"run_worker_first": true,
|
||||
"not_found_handling": "single-page-application"
|
||||
|
||||
Reference in new issue
Block a user