diff --git a/.env b/.env new file mode 100644 index 0000000..ba65ba3 --- /dev/null +++ b/.env @@ -0,0 +1,22 @@ +# 所有环境都会加载的配置 + +# 项目名称 +VITE_APP_TITLE=智慧湿地管理平台 + +# 项目描述 +VITE_APP_DESC=科技赋能生态保护 智慧守护绿色家园 + +# 版本号 +VITE_APP_VERSION=1.0.0 + +# 版权信息 +VITE_APP_COPYRIGHT=Copyright © 2025 智慧湿地管理平台 All Rights Reserved. + +# 是否启用 gzip 压缩 +VITE_BUILD_GZIP=false + +# 是否启用 brotli 压缩 +VITE_BUILD_BROTLI=false + +# 是否删除 console +VITE_DROP_CONSOLE=true \ No newline at end of file diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..d8640f1 --- /dev/null +++ b/.env.development @@ -0,0 +1,14 @@ +# 开发环境 +VITE_NODE_ENV=development + +# API 基础路径 +VITE_API_BASE_URL=http://localhost:3000 + +# 项目基础路径 +VITE_BASE_URL=/ + +# Mock API 路径 +VITE_MOCK_API=true + +# 是否开启调试工具 +VITE_DEV_TOOLS=true \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..f5561ec --- /dev/null +++ b/.env.production @@ -0,0 +1,14 @@ +# 生产环境 +VITE_NODE_ENV=production + +# API 基础路径 - 实际项目中替换为真实的后端接口地址 +VITE_API_BASE_URL=https://api.your-domain.com + +# 项目基础路径 +VITE_BASE_URL=/ + +# Mock API 路径 +VITE_MOCK_API=false + +# 是否开启调试工具 +VITE_DEV_TOOLS=false \ No newline at end of file diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..6db513b --- /dev/null +++ b/.env.test @@ -0,0 +1,14 @@ +# 测试环境 +VITE_NODE_ENV=test + +# API 基础路径 +VITE_API_BASE_URL=https://test-api.your-domain.com + +# 项目基础路径 +VITE_BASE_URL=/ + +# Mock API 路径 +VITE_MOCK_API=false + +# 是否开启调试工具 +VITE_DEV_TOOLS=true \ No newline at end of file diff --git a/index.html b/index.html index 11104c1..bff11de 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,6 @@
- +