mirror of
https://github.com/Permissionless-Software-Foundation/bch-email-api.git
synced 2026-09-21 16:52:04 -07:00
Added iredmail class and used-quota model
This commit is contained in:
+9
-1
@@ -1,6 +1,14 @@
|
||||
const common = require('./env/common')
|
||||
// Attempt to include a common.js config file, if it exists.
|
||||
let common
|
||||
try {
|
||||
common = require('./env/common')
|
||||
} catch (err) {}
|
||||
|
||||
// Default to development environment.
|
||||
const env = process.env.NODE_ENV || 'development'
|
||||
|
||||
// Load the config object for the selected environment.
|
||||
const config = require(`./env/${env}`)
|
||||
|
||||
// Merge into a single object and export.
|
||||
module.exports = Object.assign({}, common, config)
|
||||
|
||||
Reference in New Issue
Block a user