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