unpkg/modules/serverConfig.js

10 lines
303 B
JavaScript
Raw Normal View History

2018-05-17 17:10:33 +00:00
exports.port = parseInt(process.env.PORT, 10) || 5000;
exports.origin =
process.env.NODE_ENV === "production" || process.env.NODE_ENV === "test"
? "https://unpkg.com"
: `http://localhost:${exports.port}`;
2018-05-17 22:22:01 +00:00
exports.registryURL =
process.env.NPM_REGISTRY_URL || "https://registry.npmjs.org";