10f2f345 by chentao

no message

1 parent 731040c1
......@@ -24,17 +24,17 @@ export default defineConfig(({ mode, command }) => {
// vite 相关配置
server: {
port: 80,
host: true,
host: '0.0.0.0',
open: true,
forceHttps: false,
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
'/dev-api': {
'/prod-api': {
target: 'http://localhost:8082/',
// target: 'http://470k2111t0.zicp.vip/',
changeOrigin: true,
secure: false,
rewrite: (p) => p.replace(/^\/dev-api/, '')
rewrite: (p) => p.replace(/^\/prod-api/, '')
}
}
},
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!