超管后台 - 对接获取管理员列表
This commit is contained in:
12
SuperAdmin/lib/config.ts
Normal file
12
SuperAdmin/lib/config.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* 获取应用配置
|
||||
* @returns 应用配置
|
||||
*/
|
||||
export function getConfig() {
|
||||
// 优先获取环境变量中配置的API地址
|
||||
const apiBaseUrl = process.env.NEXT_PUBLIC_API_BASE_URL || 'http://yishi.com';
|
||||
|
||||
return {
|
||||
apiBaseUrl
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user