mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
remove old module.exports from server aswell
This commit is contained in:
@@ -4,7 +4,7 @@ const { join, resolve } = require('path');
|
||||
|
||||
const PATH_TO_CONFIG = join(resolve(__dirname, '../../../config.json'));
|
||||
|
||||
module.exports = function setupNconf (file) {
|
||||
export default function setupNconf (file) {
|
||||
let configFile = file || PATH_TO_CONFIG;
|
||||
|
||||
nconf
|
||||
@@ -15,4 +15,4 @@ module.exports = function setupNconf (file) {
|
||||
nconf.set('IS_PROD', nconf.get('NODE_ENV') === 'production');
|
||||
nconf.set('IS_DEV', nconf.get('NODE_ENV') === 'development');
|
||||
nconf.set('IS_TEST', nconf.get('NODE_ENV') === 'test');
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user