chore(config): 添加开发和生产环境配置文件及相关忽略规则
- 新增 .env.development 文件,配置开发环境变量 - 新增 .env.production 文件,配置生产环境变量及压缩选项 - 添加 .gitignore 文件,忽略常见临时文件和本地配置 - 新增 .npmrc 文件,配置私有npm仓库及认证信息 - 新增 .prettierrc.json,配置代码格式化规则 - 添加 403 错误页面背景图 svg 文件至 public/img/bg/目录
This commit is contained in:
17
.env.production
Normal file
17
.env.production
Normal file
@@ -0,0 +1,17 @@
|
||||
#生产环境配置
|
||||
VITE_APP_ENV = 'production'
|
||||
|
||||
#接口地址
|
||||
#填写前缀 [/api] 需要用nginx进行反向代理
|
||||
#填写地址 [https://api.bladex.cn] 只需要保证接口支持跨域即可, 无需再做代理
|
||||
VITE_APP_API=/api
|
||||
|
||||
#调试参数
|
||||
VITE_APP_DEBUG_KEY=saber
|
||||
VITE_APP_DEBUG_SWITCH=false
|
||||
|
||||
#页面基础路径
|
||||
VITE_APP_BASE=/
|
||||
|
||||
# 是否在打包时开启压缩,支持 gzip 和 brotli
|
||||
VITE_BUILD_COMPRESS = gzip
|
||||
Reference in New Issue
Block a user