summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/tools/getDevConfig.js
blob: 6563311ed2888a44251fc31478afe2640a0b1c63 (plain)
1
2
3
4
5
6
7
8
9
10
module.exports = function () {
	let localDevConfig = {};
	try {
		localDevConfig = require('../devConfig');
	} catch (e) {}
	const devConfig = Object.assign({}, require('../devConfig.defaults'), localDevConfig);
	let devPort = process.env.PORT || devConfig.port;
	devConfig.port = devPort;
	return devConfig;
}();