fix(deploy): prevent mini-user H5 blank page under /user basename
CI / verify (pull_request) Has been cancelled
CI / verify (pull_request) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -16,10 +16,12 @@ module.exports = {
|
||||
},
|
||||
{
|
||||
// C 端改为 mini-user H5 产物(端口仍 8091,进程名保持兼容旧脚本)
|
||||
// cleanUrls:false 见 apps/mini-user/serve.json(发版时复制到 dist/)
|
||||
// 否则 /pages/x/index 会被 301 成 /pages/x,Location 缺 /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',
|
||||
|
||||
Reference in New Issue
Block a user