Skip to content

Commit

Permalink
👻 Default to production for NODE_ENV (#1502)
Browse files Browse the repository at this point in the history
Fixes https://issues.redhat.com/browse/MTA-1599

Signed-off-by: ibolton336 <ibolton@redhat.com>
  • Loading branch information
ibolton336 committed Nov 1, 2023
1 parent 166b891 commit 2f8d58f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion common/src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,29 +58,35 @@ export const SERVER_ENV_KEYS = [
* Create a `KonveyorEnv` from a partial `KonveyorEnv` with a set of default values.
*/
export const buildKonveyorEnv = ({
NODE_ENV = "development",
NODE_ENV = "production",
PORT,
VERSION = "99.0.0",
MOCK = "off",

KEYCLOAK_SERVER_URL,
AUTH_REQUIRED = "false",
KEYCLOAK_REALM = "tackle",
KEYCLOAK_CLIENT_ID = "tackle-ui",

PROFILE = "konveyor",
UI_INGRESS_PROXY_BODY_SIZE = "500m",
RWX_SUPPORTED = "true",
TACKLE_HUB_URL,
}: Partial<KonveyorEnvType> = {}): KonveyorEnvType => ({
NODE_ENV,
PORT,
VERSION,
MOCK,

KEYCLOAK_SERVER_URL,
AUTH_REQUIRED,
KEYCLOAK_REALM,
KEYCLOAK_CLIENT_ID,

PROFILE,
UI_INGRESS_PROXY_BODY_SIZE,
RWX_SUPPORTED,
TACKLE_HUB_URL,
});

/**
Expand Down

0 comments on commit 2f8d58f

Please sign in to comment.