fingerprint/server/config/domain.js
2015-08-07 17:13:32 +02:00

13 lines
367 B
JavaScript

var _ = require('lodash');
module.exports = function(config) {
if(!config.port || !_.isNumber(config.port)) throw new Error('Port undefined or not a number');
return {
development: 'localhost:' + config.port,
testing: 'changeThisFool.testing.thecodebureau.com',
staging: 'changeThisFool.thecodebureau.com',
production: 'www.changeThisFool.se'
}[ENV];
};