bc4d3fce by chentao

no message

1 parent 10f2f345
...@@ -29,6 +29,13 @@ export default defineConfig(({ mode, command }) => { ...@@ -29,6 +29,13 @@ export default defineConfig(({ mode, command }) => {
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': {
33 target: 'http://localhost:8082/',
34 // target: 'http://470k2111t0.zicp.vip/',
35 changeOrigin: true,
36 secure: false,
37 rewrite: (p) => p.replace(/^\/dev-api/, '')
38 },
32 '/prod-api': { 39 '/prod-api': {
33 target: 'http://localhost:8082/', 40 target: 'http://localhost:8082/',
34 // target: 'http://470k2111t0.zicp.vip/', 41 // target: 'http://470k2111t0.zicp.vip/',
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!