refactor(env): 重构环境变量配置并简化项目设置
-移除了大部分冗余环境变量,简化了配置结构 - 更新了 API 地址配置方式,使用 VITE_API_URL 替代原有变量 - 删除了未使用的代码文件,包括 apiCodes.ts、axiosHandler.ts 和 types.d.ts - 调整了 vite 配置,使用环境变量中的 API地址 - 更新了 gitignore 文件,添加了 dist 目录的忽略项
This commit is contained in:
10
env/.env.production
vendored
10
env/.env.production
vendored
@ -1,8 +1,4 @@
|
||||
# 生产环境
|
||||
APP_TITLE='production | eyo'
|
||||
|
||||
# 接口路径
|
||||
API_PATH=zzz
|
||||
|
||||
# 接口地址
|
||||
EO_API_URL=http://lingjiapi.lvfunai.com/api
|
||||
VITE_API_URL=https://lingjiapi.lvfunai.com/api
|
||||
|
||||
VITE_ENV='production'
|
||||
|
||||
Reference in New Issue
Block a user