修改配置文件
parent
4285508faf
commit
f7996664c0
|
@ -39,8 +39,7 @@ export default defineConfig(({ mode, command }) => {
|
|||
},
|
||||
// https://cn.vitejs.dev/config/#server-proxy
|
||||
"/dev-api": {
|
||||
//target: "http://localhost:8080",
|
||||
target: "http://62.234.3.186/prod-api/",
|
||||
target: "http://localhost:8080",
|
||||
changeOrigin: true,
|
||||
rewrite: (p) => p.replace(/^\/dev-api/, ""),
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue