Use absolute path from the current directory for configuration file.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 8 Oct 2020 09:09:14 +0000 (11:09 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 8 Oct 2020 09:09:14 +0000 (11:09 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/utils/Configuration.js

index 7393626be78e39c2bf758dbf39ff79620f8e27c3..65915f04a28ab3b3d4ea3e7fd8cb654622ff8ddb 100644 (file)
@@ -6,7 +6,7 @@ class Configuration {
   // Read the config file
   static getConfig() {
     if (!Configuration.configurationFile) {
-      Configuration.configurationFile = JSON.parse(fs.readFileSync('src/assets/config.json', 'utf8'));
+      Configuration.configurationFile = JSON.parse(fs.readFileSync('./src/assets/config.json', 'utf8'));
     }
     return Configuration.configurationFile;
   }