no message
Showing
1 changed file
with
6 additions
and
7 deletions
| ... | @@ -28,18 +28,17 @@ export default defineConfig(({ mode, command }) => { | ... | @@ -28,18 +28,17 @@ export default defineConfig(({ mode, command }) => { |
| 28 | open: true, | 28 | open: true, |
| 29 | forceHttps: false, | 29 | forceHttps: false, |
| 30 | proxy: { | 30 | proxy: { |
| 31 | // https://cn.vitejs.dev/config/#server-proxy | ||
| 32 | '/dev-api': { | 31 | '/dev-api': { |
| 33 | // target: 'http://39.107.64.215:89', | ||
| 34 | // target: 'http://healthy.a1.luyouxia.net:21973/', | ||
| 35 | // target: 'http://gyongyi.a1.luyouxia.net:26588/', | ||
| 36 | // target: 'http://183.131.85.64::8082/', | ||
| 37 | // target: 'http://192.168.1.7:8082/', | ||
| 38 | target: 'http://localhost:8082/', | 32 | target: 'http://localhost:8082/', |
| 39 | // target: 'http://gyongyi.a1.luyouxia.net:23074/', | ||
| 40 | changeOrigin: true, | 33 | changeOrigin: true, |
| 41 | secure: false, | 34 | secure: false, |
| 42 | rewrite: (p) => p.replace(/^\/dev-api/, '') | 35 | rewrite: (p) => p.replace(/^\/dev-api/, '') |
| 36 | }, | ||
| 37 | '/prod-api': { | ||
| 38 | target: 'http://localhost:8080/', | ||
| 39 | changeOrigin: true, | ||
| 40 | secure: false, | ||
| 41 | rewrite: (p) => p.replace(/^\/prod-api/, '') | ||
| 43 | } | 42 | } |
| 44 | } | 43 | } |
| 45 | }, | 44 | }, | ... | ... |
-
Please register or sign in to post a comment