|
@@ -27,11 +27,11 @@ export default defineConfig(({mode, command}) => {
|
|
|
port: Number(env.VITE_APP_PORT),
|
|
|
open: true,
|
|
|
proxy: {
|
|
|
- '/dev-api': {
|
|
|
- target: 'http://192.168.1.237',
|
|
|
+ [env.VITE_APP_BASE_API]: {
|
|
|
+ target: 'http://localhost:8080',
|
|
|
changeOrigin: true,
|
|
|
ws: true,
|
|
|
- rewrite: (path) => path.replace(/^\/dev-api/, '')
|
|
|
+ rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
|
|
|
}
|
|
|
}
|
|
|
},
|