10f2f345 by chentao

no message

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