From f92475cd259c5f367a2fd40f1131edb060c3ebbf Mon Sep 17 00:00:00 2001
From: CD配唱片 <CD配唱片>
Date: 星期三, 23 四月 2025 10:52:02 +0800
Subject: [PATCH] 提交环境配置
---
vite.config.js | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/vite.config.js b/vite.config.js
index 9c6e19f..b9f1c2a 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -16,26 +16,26 @@
// 鏍规嵁鐜鍙橀噺鍔ㄦ�佽缃唬鐞�
const proxyConfig = () => {
const devProxy = {
- "/dev-api": {
- target: "http://192.168.50.86:8080", // 寮�鍙戠幆澧冪殑鍚庣鍦板潃
+ "/prod-api": {
+ target: "http://192.168.50.160:8080", // 寮�鍙戠幆澧冪殑鍚庣鍦板潃
changeOrigin: true,
- rewrite: (path) => path.replace(/^\/dev-api/, ""),
+ rewrite: (path) => path.replace(/^\/prod-api/, ""),
},
};
const testProxy = {
- "/stage-api": {
+ "/prod-api": {
target: "http://192.168.50.160:8080", // 娴嬭瘯鐜鐨勫悗绔湴鍧�
changeOrigin: true,
- rewrite: (path) => path.replace(/^\/stage-api/, ""),
+ rewrite: (path) => path.replace(/^\/prod-api/, ""),
},
};
const prodProxy = {
- "/stage-api": {
+ "/prod-api": {
target: "http://192.168.50.160:8080", // 娴嬭瘯鐜鐨勫悗绔湴鍧�
changeOrigin: true,
- rewrite: (path) => path.replace(/^\/stage-api/, ""),
+ rewrite: (path) => path.replace(/^\/prod-api/, ""),
},
};
--
Gitblit v1.9.3