fix(deploy): prevent mini-user H5 blank page under /user basename
CI / verify (pull_request) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-15 18:57:33 +08:00
parent e7d39f7390
commit 7062aeb8f8
5 changed files with 29 additions and 1 deletions
+3 -1
View File
@@ -16,10 +16,12 @@ module.exports = {
},
{
// C 端改为 mini-user H5 产物(端口仍 8091,进程名保持兼容旧脚本)
// cleanUrls:false 见 apps/mini-user/serve.json(发版时复制到 dist/
// 否则 /pages/x/index 会被 301 成 /pages/xLocation 缺 /user 前缀 → Taro 白屏
name: 'dukang-h5-user',
cwd: `${APP_ROOT}/apps/mini-user`,
script: 'npx',
args: 'serve -s dist -l 8091',
args: 'serve dist -l 8091 -c serve.json',
interpreter: 'none',
instances: 1,
exec_mode: 'fork',