fix: 使用当前域名

This commit is contained in:
wood911010 committed 2025-09-05 21:49:56 +08:00
1 parent e81d024f91
commit 823dc8462f
2 files changed
+2 -9

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
# 正式环境接口地址
VITE_API_BASE_URL = 'http://104.156.140.42:18888'
# 正式环境接口地址 - 自动匹配当前域名
VITE_API_BASE_URL = '/api'
# 正式环境打包名称
VITE_OUTDIR='production'
-7
View File
@@ -65,13 +65,6 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
hmr: {
overlay: true
},
// 代理配置 (已直接配置 API 基础地址,不需要代理)
// proxy: {
// "/": {
// target: "http://104.156.140.42:18888/",
// changeOrigin: true,
// },
// }
},
// 依赖优化配置