Skip to content

Commit

Permalink
fix: wrong generated config syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Jan 27, 2024
1 parent 936b36f commit 8d08f76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' \
Expand Down
6 changes: 5 additions & 1 deletion generate-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}

Expand Down

0 comments on commit 8d08f76

Please sign in to comment.