This commit is contained in:
aaron 2025-03-09 10:00:27 +08:00
parent 84953056f7
commit f54cca85de

View File

@ -4,12 +4,12 @@ const ENV = process.env.NODE_ENV || 'development';
// API 基础地址配置
const API_BASE_URL = {
development: 'http://localhost:8000',
test: 'https://api-dev.beefast.co',
testing: 'https://api-dev.beefast.co',
production: 'https://api.beefast.co'
};
// 当前环境的 API 基础地址
const BASE_URL = API_BASE_URL[ENV === 'production' ? 'production' : ENV === 'test' ? 'test' : 'development'];
const BASE_URL = API_BASE_URL[ENV === 'production' ? 'production' : ENV === 'testing' ? 'testing' : 'development'];
export default {
BASE_URL,