oak-cli/template/native/configuration/index.ts

18 lines
383 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 初始化App也必须输入访问的目标域名系统根据domain和system的关系来判定appId
*/
const env = process.env.NODE_ENV;
const URL = {
// 服务器地址数组和application的domain中要保持一致以确定application
development: 'localhost',
staging: 'test.com',
production: 'test.com',
};
const host = URL[env];
export {
host,
};