projects
/
websub-hub
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update dependencies, fixes to support new authentication features
[websub-hub]
/
config
/
index.js
diff --git
a/config/index.js
b/config/index.js
index d06162efd0431d4a980990c9a753168eefb853f5..8f31211317d5689ae240a4a63a708f72b26ecd8c 100644
(file)
--- a/
config/index.js
+++ b/
config/index.js
@@
-5,6
+5,11
@@
const common = require('../src/common');
const defaultEnvironment = 'development';
const testEnvironment = 'test';
const defaultEnvironment = 'development';
const testEnvironment = 'test';
+/**
+ * Merge environment-specific config objects on top of defaults.
+ * @param {string=} environment from NODE_ENV
+ * @returns {object} config
+ */
function Config(environment) {
environment = environment || defaultEnvironment;
const defaultConfig = require('./default');
function Config(environment) {
environment = environment || defaultEnvironment;
const defaultConfig = require('./default');