Error al incluir datasource.json

This commit is contained in:
Joan Sanchez 2017-11-28 08:44:44 +01:00
parent 09d788faaa
commit f5e3801c35
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ try {
config = Object.assign(require(configPath), require(devConfigPath)); config = Object.assign(require(configPath), require(devConfigPath));
} catch (e) { } catch (e) {
if (e.code == 'MODULE_NOT_FOUND') if (e.code == 'MODULE_NOT_FOUND')
return require(configPath); config = require(configPath);
} }
config.proxy = require('../../nginx/config.json'); config.proxy = require('../../nginx/config.json');

View File

@ -9,7 +9,7 @@ try {
config = Object.assign(require(configPath), require(devConfigPath)); config = Object.assign(require(configPath), require(devConfigPath));
} catch (e) { } catch (e) {
if (e.code == 'MODULE_NOT_FOUND') if (e.code == 'MODULE_NOT_FOUND')
return require(configPath); config = require(configPath);
} }
config.proxy = require('../../nginx/config.json'); config.proxy = require('../../nginx/config.json');