From ced1994b9146b250c199d2b39f39ec66729461c4 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Sun, 17 Aug 2025 14:36:12 +0800 Subject: [PATCH] =?UTF-8?q?chore(env):=20=E6=9B=B4=E6=96=B0=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将生产环境 NODE_ENV 改为 production - 在测试环境添加 VITE_SHOW_SOURCEMAP 配置 - 删除开发环境配置文件 --- env/.env.development | 9 --------- env/.env.production | 2 +- env/.env.test | 2 ++ 3 files changed, 3 insertions(+), 10 deletions(-) delete mode 100644 env/.env.development diff --git a/env/.env.development b/env/.env.development deleted file mode 100644 index 9da53ba..0000000 --- a/env/.env.development +++ /dev/null @@ -1,9 +0,0 @@ -# 变量必须以 VITE_ 为前缀才能暴露给外部读取 -NODE_ENV = 'development' -# 是否去除console 和 debugger -VITE_DELETE_CONSOLE = false -# 是否开启sourcemap -VITE_SHOW_SOURCEMAP = true - -# 后台请求地址 -VITE_SERVER_BASEURL = 'https://dev.xxx.com' \ No newline at end of file diff --git a/env/.env.production b/env/.env.production index cae8946..9411144 100644 --- a/env/.env.production +++ b/env/.env.production @@ -1,5 +1,5 @@ # 变量必须以 VITE_ 为前缀才能暴露给外部读取 -NODE_ENV = 'development' +NODE_ENV = 'production' # 是否去除console 和 debugger VITE_DELETE_CONSOLE = true # 是否开启sourcemap diff --git a/env/.env.test b/env/.env.test index 9c3dea7..fff5e63 100644 --- a/env/.env.test +++ b/env/.env.test @@ -2,6 +2,8 @@ NODE_ENV = 'development' # 是否去除console 和 debugger VITE_DELETE_CONSOLE = false +# 是否开启sourcemap +VITE_SHOW_SOURCEMAP = false # 后台请求地址 VITE_SERVER_BASEURL = 'https://test.xxx.com' \ No newline at end of file