From c3e22de4e695cc96f7241fa11e95624ba2a14791 Mon Sep 17 00:00:00 2001 From: RhenCloud Date: Sun, 2 Aug 2026 07:43:11 +0800 Subject: [PATCH] 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 --- wrangler.jsonc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wrangler.jsonc b/wrangler.jsonc index 3eda9d7..da2b6ce 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -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"