fix(deploy): staging C端 H5 根路径部署,去掉 /user 前缀
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -105,8 +105,7 @@ export default defineConfig(async () => ({
|
||||
},
|
||||
},
|
||||
h5: {
|
||||
// 生产发版由 remote-release 注入 TARO_H5_PUBLIC_PATH=/user/、TARO_H5_ROUTER_BASENAME=/user
|
||||
// 本地预览勿强制 basename,否则静态托管下易白屏
|
||||
// staging:user-test.dukanghaoke.com 根路径;生产:remote-release 注入 /user/
|
||||
publicPath: process.env.TARO_H5_PUBLIC_PATH || '/',
|
||||
...(process.env.TARO_H5_ROUTER_BASENAME
|
||||
? {
|
||||
|
||||
Reference in New Issue
Block a user