Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lathoub committed Sep 13, 2024
1 parent a8826d7 commit 2bc3dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const app = express();
const __dirname = import.meta.dirname;
if (__dirname === undefined) console.log("need node 20.16 or higher");

const configPath = process.env.DATA_PATH || join(__dirname, "../config");
const configPath = join(process.env.DATA_PATH || __dirname, "../config");
const yamlStr = readFileSync(join(configPath, `${process.env.ID}.yml`));
global.config = YAML.parse(yamlStr.toString());

Expand Down

0 comments on commit 2bc3dff

Please sign in to comment.