Skip to content

Commit

Permalink
Check for all required env vars
Browse files Browse the repository at this point in the history
We are using `require-env-variable` to ensure certain environment
variables are properly set on service start.  This adds in a few more
required variables. Even though they are not directly passed into our
service classes, they are used by third party libraries and so we want
to ensure their existence.
  • Loading branch information
slifty committed Nov 7, 2023
1 parent 81a84f3 commit 979a5ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ const {
FUSION_AUTH_SFTP_CLIENT_ID,
FUSION_AUTH_SFTP_CLIENT_SECRET,
} = requireEnv(
'FUSION_AUTH_HOST',
'FUSION_AUTH_KEY',
'PERMANENT_API_BASE_PATH',
'SSH_HOST_KEY_PATH',
'FUSION_AUTH_SFTP_APP_ID',
'FUSION_AUTH_SFTP_CLIENT_ID',
Expand Down

0 comments on commit 979a5ec

Please sign in to comment.