This commit is contained in:
sjk
2025-11-28 15:18:10 +08:00
parent ad4a600af9
commit 5683f35942
188 changed files with 53680 additions and 1062 deletions

View File

@@ -5,11 +5,26 @@ const ENV = {
apiBase: 'http://localhost:8081/api/v1',
useMock: false,
},
// 生产环境 - 线上后端
// 生产环境 - 线上后端(中国区)
production: {
apiBase: 'https://tral.cc/api/v1', // 替换为你的线上域名
useMock: false,
},
// 生产环境 - 中国区
'production-cn': {
apiBase: 'https://api-cn.your-domain.com/api/v1', // 中国区API地址
useMock: false,
},
// 生产环境 - 美国区
'production-us': {
apiBase: 'https://api-us.your-domain.com/api/v1', // 美国区API地址
useMock: false,
},
// 生产环境 - 欧洲区
'production-eu': {
apiBase: 'https://api-eu.your-domain.com/api/v1', // 欧洲区API地址
useMock: false,
},
// 测试环境
test: {
apiBase: 'https://test-api.your-domain.com/api/v1', // 替换为你的测试环境域名
@@ -23,7 +38,7 @@ const ENV = {
};
// 当前环境设置 - 修改这里来切换环境
const CURRENT_ENV = 'development'; // 可选值: 'development', 'production', 'test', 'mock'
const CURRENT_ENV = 'development'; // 可选值: 'development', 'production', 'production-cn', 'production-us', 'production-eu', 'test', 'mock'
// 导出当前环境的配置
const config = {