no message
Showing
1 changed file
with
7 additions
and
0 deletions
| ... | @@ -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/', | ... | ... |
-
Please register or sign in to post a comment