From 52d3ceb65cc77dbacd47300a8cc27e4e337c5de1 Mon Sep 17 00:00:00 2001 From: xixiibn5100 <1584914306@qq.com> Date: Sat, 5 Oct 2024 14:09:17 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E9=97=AE=E5=8D=B7=E5=9C=B0=E5=9D=80=E7=9A=84baseURl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.sample | 5 ++++- vite.config.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.env.sample b/.env.sample index 7769979..166a93f 100644 --- a/.env.sample +++ b/.env.sample @@ -1 +1,4 @@ -HOST=http://sample.com \ No newline at end of file +# 请求地址的baseURL +VITE_HOST=http:// +# 复制问卷的baseURL +VITE_COPY_LINK=http:// \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 9c4e5eb..fe7e3b2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -20,7 +20,7 @@ export default defineConfig(({mode}) => { ], server: { proxy: { - "/api": env.HOST + "/api": env.VITE_HOST } }, resolve: {