mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-29 08:07:48 +01:00
reformat with prettier,add react frontend submodule
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user