🚚 Update path to config file

This commit is contained in:
Alicia Sykes 2024-04-08 20:36:00 +01:00
parent 5f6aadcb95
commit fd45aa6bd1
1 changed files with 4 additions and 2 deletions

View File

@ -98,12 +98,14 @@ const printFileReadError = (e) => {
}
};
let config = {};
try { // Try to open and parse the YAML file
config = yaml.load(fs.readFileSync('./public/conf.yml', 'utf8'));
config = yaml.load(fs.readFileSync('./user-data/conf.yml', 'utf8'));
validate(config);
} catch (e) { // Something went very wrong...
setIsValidVariable(false);
logToConsole(bigError());
printFileReadError(e);
}
module.exports = config;
module.exports = config;