reformat with prettier,add react frontend submodule

This commit is contained in:
2018-06-03 12:47:23 +03:00
parent 38688491f9
commit bbee6b2b95
16 changed files with 255 additions and 58 deletions

View File

@@ -1,5 +1,15 @@
const env = process.env.NODE_ENV;
const prod = {
app: {
port: process.env.APP_PORT,
},
db: {
uri: process.env.DB_URI,
},
secret: process.env.SECRET,
};
const dev = {
app: {
port: process.env.DEV_APP_PORT || 4000,
@@ -15,8 +25,9 @@ const test = {
};
const config = {
prod,
dev,
test,
};
module.exports = config[env] || config.dev;
module.exports = config[env] || config.prod;