新增go服务token

This commit is contained in:
Teo
2025-07-29 16:24:08 +08:00
parent 7e7e51853d
commit c069b53636
9 changed files with 61 additions and 14 deletions

View File

@ -48,11 +48,17 @@ export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
ws: true,
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
},
'/auth': {
'/auth': {
target: env.VITE_APP_BASE_API,
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
},
[env.VITE_APP_BASE_API_GO]: {
target: 'http://192.168.110.159:8919',
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API_GO), '')
}
}
},