From e806107b5ae6ba4103e071f38edfa2e347fe5784 Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Wed, 23 Sep 2026 17:04:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.test | 17 +++++++++++++++++ package.json | 1 + 2 files changed, 18 insertions(+) create mode 100644 .env.test diff --git a/.env.test b/.env.test new file mode 100644 index 00000000..73923ef9 --- /dev/null +++ b/.env.test @@ -0,0 +1,17 @@ +# port 端口号 +VITE_PORT = 8888 + +#浏览器自动打开 +VITE_OPEN = true + +# 测试环境 +ENV = 'test' + +# ADMIN 服务地址(测试域名) +VITE_ADMIN_PROXY_PATH = http://test.zianxin.com + +# 图片访问基础地址 +VITE_IMAGE_BASE_PATH = http://test.zianxin.com/api + +# 代码生成服务地址(按测试机实际部署调整) +VITE_GEN_PROXY_PATH = http://test.zianxin.com diff --git a/package.json b/package.json index 4474ea8b..eb3c6c46 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "preview:tunnel": "npm run build:dev && vite preview --host 0.0.0.0 --port 8888", "build": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build", "build:prod": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode prod", + "build:test": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode test", "build:dev": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode dev", "build:docker": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --outDir ./docker/dist/", "lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src",