新增go服务token
This commit is contained in:
@ -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), '')
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user