Files
cunkebao_v3/SuperAdmin/lib/config.ts
2025-04-09 18:35:36 +08:00

12 lines
253 B
TypeScript

/**
* 获取应用配置
* @returns 应用配置
*/
export function getConfig() {
// 优先获取环境变量中配置的API地址
const apiBaseUrl = process.env.NEXT_PUBLIC_API_BASE_URL || 'http://yishi.com';
return {
apiBaseUrl
};
}