From 066895294d806a78a0f0054694f194de2e5ed711 Mon Sep 17 00:00:00 2001 From: Adrian Obelmejias Date: Thu, 11 Feb 2016 14:51:09 -0500 Subject: [PATCH] Add config file for envs --- config/config.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 config/config.js diff --git a/config/config.js b/config/config.js new file mode 100644 index 0000000..c5e0862 --- /dev/null +++ b/config/config.js @@ -0,0 +1,11 @@ +const env = process.env.NODE_ENV || 'development' + +const config = { + common: { + port: process.env.PORT || 5000 + }, + development: {}, + production: {} +} + +export default Object.assign({}, config.common, config[env])