Replace bcrypt with bcryptjs / move env to config

This commit is contained in:
2020-05-07 15:10:15 +02:00
parent bf2fb47033
commit fce5a162d3
7 changed files with 30 additions and 10 deletions

6
config/config.js Normal file
View File

@@ -0,0 +1,6 @@
module.exports = {
jwt_secret: process.env.JWT_SECRET,
port: process.env.PORT || 3001,
db_url: process.env.DATABASE_URL,
environment: process.env.NODE_ENV,
};