This commit is contained in:
tangw 2025-10-16 11:27:56 +08:00
parent a5639b87ad
commit d215f469cc

View File

@ -33,13 +33,15 @@ export default defineConfig(({
},
// vite 相关配置
server: {
port: 8888,
port: 5173,
//port: 8888,
host: true,
open: false,
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
'/dev-api': {
target: 'http://47.97.125.165:8904',
target: 'http://localhost:9801',
//target: 'http://47.97.125.165:8904',
// target: 'http://192.168.1.114:9801',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')