From b050aa6b0a448b2a51cdef5fe347f147c339238a Mon Sep 17 00:00:00 2001 From: Felix Hennig Date: Sat, 7 Dec 2024 18:07:09 +0100 Subject: [PATCH] use process.env --- website/.env.docker | 2 +- website/src/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/.env.docker b/website/.env.docker index d74df5c86..e75964886 100644 --- a/website/.env.docker +++ b/website/.env.docker @@ -1,3 +1,3 @@ -PUBLIC_CONFIG_DIR=/config +CONFIG_DIR=/config LOG_DIR=/log LOG_LEVEL=debug \ No newline at end of file diff --git a/website/src/config.ts b/website/src/config.ts index 48f10024b..728ff8c5d 100644 --- a/website/src/config.ts +++ b/website/src/config.ts @@ -11,7 +11,7 @@ let _config: WebsiteConfig | null = null; let _runtimeConfig: RuntimeConfig | null = null; function getConfigDir(): string { - const configDir = import.meta.env.PUBLIC_CONFIG_DIR; + const configDir = process.env.CONFIG_DIR; if (typeof configDir !== 'string' || configDir === '') { throw new Error(`CONFIG_DIR environment variable was not set during build time, is '${configDir}'`); }