var path = require('path'); let configPath = path.join(__dirname, 'config/datasources.json'); if (process.env.NODE_ENV != 'production') configPath = path.join(__dirname, 'config/datasources.development.json'); module.exports = require(configPath);