fix(deploy): staging C端 H5 根路径部署,去掉 /user 前缀

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-03 20:22:51 +08:00
parent ffa753707b
commit d90847bad0
3 changed files with 26 additions and 5 deletions
+1 -2
View File
@@ -105,8 +105,7 @@ export default defineConfig(async () => ({
},
},
h5: {
// 生产发版由 remote-release 注入 TARO_H5_PUBLIC_PATH=/user/、TARO_H5_ROUTER_BASENAME=/user
// 本地预览勿强制 basename,否则静态托管下易白屏
// staginguser-test.dukanghaoke.com 根路径;生产:remote-release 注入 /user/
publicPath: process.env.TARO_H5_PUBLIC_PATH || '/',
...(process.env.TARO_H5_ROUTER_BASENAME
? {