From bde55974678761d799d1e507070f72838c571bde Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 30 Apr 2024 21:33:35 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E7=BB=93?= =?UTF-8?q?=E5=90=88=20vite=20=E6=9C=BA=E5=88=B6=EF=BC=8C=E5=B0=86=20.env.?= =?UTF-8?q?local-dev=20=E4=BF=AE=E6=94=B9=E6=88=90=20.env.local?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 5 ++--- .env.local-dev => .env.local | 0 package.json | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) rename .env.local-dev => .env.local (100%) diff --git a/.env.dev b/.env.dev index 5cce6646..232f1c6b 100644 --- a/.env.dev +++ b/.env.dev @@ -1,11 +1,10 @@ # 开发环境:本地只启动前端项目,依赖开发环境(后端、APP) -NODE_ENV=development +NODE_ENV=production VITE_DEV=true # 请求路径 VITE_BASE_URL='http://api-dashboard.yudao.iocoder.cn' -# VITE_BASE_URL='http://dofast.demo.huizhizao.vip:20001' # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务 VITE_UPLOAD_TYPE=server @@ -34,4 +33,4 @@ VITE_OUT_DIR=dist VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn' # 验证码的开关 -VITE_APP_CAPTCHA_ENABLE=false +VITE_APP_CAPTCHA_ENABLE=true diff --git a/.env.local-dev b/.env.local similarity index 100% rename from .env.local-dev rename to .env.local diff --git a/package.json b/package.json index bb7ba1c8..ff06a04d 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,10 @@ "private": false, "scripts": { "i": "pnpm install", - "dev": "vite --mode local-dev", + "dev": "vite", "dev-server": "vite --mode dev", "ts:check": "vue-tsc --noEmit", - "build:local-dev": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode local-dev", + "build:local": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build", "build:dev": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode local-dev", "build:test": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode test", "build:stage": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode stage",