1 2 3 4 5 6 7 8
const IS_LOCAL_PUBLISH = process.env.IS_LOCAL_PUBLISH === 'true'; const LOCAL_NPM_REGISTRY_URL = 'http://localhost:4873'; const REMOTE_NPM_REGISTRY_URL = 'https://registry.npmjs.org'; export const configs = { IS_LOCAL_PUBLISH, NPM_REGISTRY_URL: IS_LOCAL_PUBLISH ? LOCAL_NPM_REGISTRY_URL : REMOTE_NPM_REGISTRY_URL, };