Skip to content

Commit

Permalink
N21-2103 fix configs
Browse files Browse the repository at this point in the history
  • Loading branch information
GordonNicholasCap committed Dec 20, 2024
1 parent ab54ba5 commit 009a024
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export interface VidisSyncConfig {
VIDIS_SYNC_REGION: string;
VIDIS_SYNC_REGION: string | undefined;
}
2 changes: 1 addition & 1 deletion apps/server/src/infra/vidis-client/vidis-client-config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export interface VidisClientConfig {
VIDIS_API_CLIENT_BASE_URL: string;
VIDIS_API_CLIENT_BASE_URL: string | undefined;
}
8 changes: 6 additions & 2 deletions apps/server/src/modules/server/server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,12 @@ const config: ServerConfig = {
FEATURE_OAUTH_LOGIN: Configuration.get('FEATURE_OAUTH_LOGIN') as boolean,
FEATURE_EXTERNAL_SYSTEM_LOGOUT_ENABLED: Configuration.get('FEATURE_EXTERNAL_SYSTEM_LOGOUT_ENABLED') as boolean,
PUBLIC_BACKEND_URL: Configuration.get('PUBLIC_BACKEND_URL') as string,
VIDIS_API_CLIENT_BASE_URL: Configuration.get('VIDIS_API_CLIENT_BASE_URL') as string,
VIDIS_SYNC_REGION: Configuration.get('VIDIS_SYNC_REGION') as string,
VIDIS_API_CLIENT_BASE_URL: Configuration.has('VIDIS_API_CLIENT_BASE_URL')
? (Configuration.get('VIDIS_API_CLIENT_BASE_URL') as string)
: undefined,
VIDIS_SYNC_REGION: Configuration.has('VIDIS_SYNC_REGION')
? (Configuration.get('VIDIS_SYNC_REGION') as string)
: undefined,
};

export const serverConfig = () => config;
Expand Down

0 comments on commit 009a024

Please sign in to comment.