oss1
This commit is contained in:
@@ -7,6 +7,8 @@ export interface AppConfig {
|
||||
wechatAuthEnabled: boolean;
|
||||
wechatPayEnabled: boolean;
|
||||
wxAppId: string;
|
||||
/** OSS_ENABLED=true 且 AccessKey/Bucket 齐全时走阿里云直传 */
|
||||
ossEnabled: boolean;
|
||||
}
|
||||
|
||||
export function loadAppConfig(env?: Record<string, string | undefined>): AppConfig {
|
||||
@@ -23,5 +25,6 @@ export function loadAppConfig(env?: Record<string, string | undefined>): AppConf
|
||||
wechatAuthEnabled: e.WECHAT_AUTH_ENABLED === 'true',
|
||||
wechatPayEnabled: e.WECHAT_PAY_ENABLED === 'true' || e.MOCK_PAY === 'false',
|
||||
wxAppId: e.WX_APP_ID ?? '',
|
||||
ossEnabled: e.OSS_ENABLED === 'true',
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user