From 5cfd0955f13b031e3870815a028f856391d464f3 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Mon, 4 Nov 2024 21:14:31 +0300 Subject: [PATCH] chore(server.js):Update Server Code to Use Environment Variable --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index fe6863b..1857cda 100644 --- a/server.js +++ b/server.js @@ -8,7 +8,8 @@ import icalGenerator from 'ical-generator'; const app = express(); app.use(express.json()); -const MERGED_CALENDARS_DIR = 'calendar'; +const MERGED_CALENDARS_DIR = process.env.TEST_MERGED_CALENDARS_DIR || 'calendar'; + // Ensure the merged calendars directory exists if (!fs.existsSync(MERGED_CALENDARS_DIR)) {