diff --git a/website/.env.docker b/website/.env.docker index e75964886..d74df5c86 100644 --- a/website/.env.docker +++ b/website/.env.docker @@ -1,3 +1,3 @@ -CONFIG_DIR=/config +PUBLIC_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 33a31e785..48f10024b 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.CONFIG_DIR; + const configDir = import.meta.env.PUBLIC_CONFIG_DIR; if (typeof configDir !== 'string' || configDir === '') { throw new Error(`CONFIG_DIR environment variable was not set during build time, is '${configDir}'`); }