connect to the database
This commit is contained in:
7
src/config/Configuration.ts
Normal file
7
src/config/Configuration.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export default () => ({
|
||||
database: {
|
||||
url: process.env.DATABASE_URL || 'localhost',
|
||||
port: parseInt(process.env.DATABASE_PORT, 10) || 27017,
|
||||
name: process.env.DATABASE_NAME || 'aman',
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user