提供独立路径的国内PDA测试H5部署

This commit is contained in:
2026-09-29 20:57:38 +08:00
parent 68357a4766
commit a031a37c77
10 changed files with 179 additions and 2 deletions
+4
View File
@@ -26,7 +26,11 @@ export default defineConfig(({ mode }) => {
const proxyTarget = env.API_PROXY_TARGET || 'http://127.0.0.1:9000'
return {
base: process.env.UNI_PLATFORM === 'h5' && mode === 'production' ? '/pda-domestic/' : undefined,
plugins: [uni()],
define: {
'import.meta.env.VITE_PDA_UPDATE_URL': JSON.stringify(env.VITE_PDA_UPDATE_URL || '')
},
server: {
proxy: {
'/gateway-api': loggedProxy({