2025-05-19 21:27:10 -04:00
|
|
|
require('dotenv').config();
|
|
|
|
|
|
|
|
|
|
const {
|
2025-05-20 20:06:03 -04:00
|
|
|
PORT,
|
2025-05-19 21:27:10 -04:00
|
|
|
JWT_SECRET,
|
|
|
|
|
DB_HOST,
|
|
|
|
|
DB_USER,
|
|
|
|
|
DB_PORT,
|
|
|
|
|
DB_PASSWORD,
|
|
|
|
|
DB_NAME
|
|
|
|
|
} = process.env
|
|
|
|
|
|
|
|
|
|
const envConfig = {
|
|
|
|
|
port: PORT,
|
|
|
|
|
jwtSecret: JWT_SECRET,
|
|
|
|
|
db: {
|
|
|
|
|
host: DB_HOST,
|
|
|
|
|
port: DB_PORT,
|
|
|
|
|
user: DB_USER,
|
|
|
|
|
password: DB_PASSWORD,
|
|
|
|
|
name: DB_NAME
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2025-05-22 18:33:00 -04:00
|
|
|
module.exports = envConfig;
|
|
|
|
|
//IO
|