Skip to content

Commit

Permalink
use process.env
Browse files Browse the repository at this point in the history
  • Loading branch information
fhennig committed Dec 7, 2024
1 parent e51e8a7 commit b050aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/.env.docker
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
PUBLIC_CONFIG_DIR=/config
CONFIG_DIR=/config
LOG_DIR=/log
LOG_LEVEL=debug
2 changes: 1 addition & 1 deletion website/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}'`);
}
Expand Down

0 comments on commit b050aa6

Please sign in to comment.