docs: 开发配置
This commit is contained in:
@@ -20,10 +20,10 @@ export default defineConfig(({ mode }) => {
|
||||
proxy: {
|
||||
// https://cn.vitejs.dev/config/#server-proxy
|
||||
[env.VITE_API_BASE_URL]: {
|
||||
target: 'http://192.168.0.229:3186',
|
||||
// target: 'http://192.168.2.114:3040',
|
||||
// target: 'http://192.168.0.229:3186',
|
||||
target: 'http://192.168.2.114:3040',
|
||||
changeOrigin: true,
|
||||
rewrite: p => p.replace(/^\/dev-api/, ''),
|
||||
rewrite: p => p.replace(env.VITE_API_BASE_URL, ''),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user