Skip to content

Commit

Permalink
[DURACOM-288] Add convention SSR REST environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
atarix83 committed Jan 31, 2025
1 parent bf2d12a commit ac3e87d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/config/config.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ export const buildAppConfig = (destConfigPath?: string): AppConfig => {
appConfig.rest.port = isNotEmpty(ENV('REST_PORT', true)) ? getNumberFromString(ENV('REST_PORT', true)) : appConfig.rest.port;
appConfig.rest.nameSpace = isNotEmpty(ENV('REST_NAMESPACE', true)) ? ENV('REST_NAMESPACE', true) : appConfig.rest.nameSpace;
appConfig.rest.ssl = isNotEmpty(ENV('REST_SSL', true)) ? getBooleanFromString(ENV('REST_SSL', true)) : appConfig.rest.ssl;
appConfig.rest.ssrBaseUrl = isNotEmpty(ENV('REST_SSRBASEURL', true)) ? ENV('REST_SSRBASEURL', true) : appConfig.rest.ssrBaseUrl;

// apply build defined production
appConfig.production = env === 'production';
Expand Down

0 comments on commit ac3e87d

Please sign in to comment.