Add db config

This commit is contained in:
Moe Poi ~ 2021-11-15 16:57:21 +07:00
parent f0ea916c1b
commit 31f81cd8e7

12
config.js Normal file
View file

@ -0,0 +1,12 @@
const env = process.env;
const config = {
db: {
host: env.DB_HOST,
user: env.DB_USER,
password: env.DB_PASSWORD,
database: env.DB_NAME,
},
};
module.exports = config;