Skip to content

Commit

Permalink
Actually default UD_ENV to "production"
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryCraft committed May 13, 2024
1 parent 39d5723 commit 854ac6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/env_vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
UtilityDust supports many environment variables to customize its behavior. The following is a list of all the environment variables that UtilityDust supports:

## General
- `NODE_ENV`: The environment in which the application is running. Can be `development` or `production`. If not set, UtilityDust will default to `production`.
- `UD_ENV`: The environment in which the application is running. Can be `development` or `production`. If not set, UtilityDust will default to `production`.

## Configuration
- `UD_CONFIG_PATH`: The path to the configuration directory. If not set, UtilityDust will use the default configuration directory. Which is `config` in the working directory.
Expand Down
2 changes: 1 addition & 1 deletion src/engine/utils/Env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const defaultcfgpath = `${getProcessPath()}/config`;

export class InherentConfig {
private singleton: InherentConfig | null = null;
node_env = process.env.NODE_ENV || "development";
node_env = process.env.UD_ENV || "production";
cfg_path = process.env.UD_CONFIG_PATH || defaultcfgpath;
allow_insecure_config = process.env.UD_ALLOW_INSECURE_CONFIG === "true" || false;
constructor() {
Expand Down

0 comments on commit 854ac6e

Please sign in to comment.