mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +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:
parent
81d21ffb08
commit
c3e22de4e6
1 changed files with 4 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue