From 8d08f766b8b8eeef8ebbb09231285245847cae3c Mon Sep 17 00:00:00 2001 From: mirkobrombin Date: Sat, 27 Jan 2024 22:31:38 +0100 Subject: [PATCH] fix: wrong generated config syntax --- README.md | 2 +- generate-config.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8ac469f..b17e0d5 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ To deploy the production version using Docker, run the following command: ```bash docker pull ghcr.io/vanilla-os/chronos-fe:main -docker run -d -p 5173:80 ghcr.io/vanilla-os/chronos-fe:main \ +docker run -d -p 6090:80 ghcr.io/vanilla-os/chronos-fe:main \ -e CHRONOS_TITLE='Chronos Documentation' \ -e CHRONOS_LOGO_TITLE='Documentation' \ -e CHRONOS_LOGO_URL='/logo.svg' \ diff --git a/generate-config.js b/generate-config.js index 3076fb4..f460eca 100644 --- a/generate-config.js +++ b/generate-config.js @@ -17,7 +17,11 @@ const extractItemsFromEnv = (prefix) => { while (process.env[`${prefix}_${index}`]) { const itemString = process.env[`${prefix}_${index}`]; const item = parseArray(itemString); - items.push(item); + + if (item.length > 0) { + items.push(item[0]); + } + index++; }