17 lines
590 B
TypeScript
17 lines
590 B
TypeScript
export type MiniProgramEnvVersion = 'develop' | 'trial' | 'release';
|
||
|
||
export const API_BASE_URL_OVERRIDE_KEY = 'api_base_url_override';
|
||
|
||
export interface TenantRuntimeConfig {
|
||
apiBaseUrlByEnv: Record<MiniProgramEnvVersion, string>;
|
||
}
|
||
|
||
// develop 环境允许本地联调;trial/release 请替换为已备案且已配置到小程序后台“服务器域名”的 HTTPS 域名。
|
||
export const tenantRuntimeConfig: TenantRuntimeConfig = {
|
||
apiBaseUrlByEnv: {
|
||
develop: 'http://127.0.0.1:8112',
|
||
trial: 'https://trial-api.example.com',
|
||
release: 'https://api.example.com',
|
||
},
|
||
};
|