Skip to content

Commit

Permalink
Ensure STATIC_FILES_PORT is used as backup in lieu more specific config
Browse files Browse the repository at this point in the history
  • Loading branch information
metasoarous committed Mar 30, 2023
1 parent b41141d commit 44f25e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export default {
readOnlyDatabaseURL: process.env.READ_ONLY_DATABASE_URL || process.env.DATABASE_URL as string,
runPeriodicExportTests: isTrue(process.env.RUN_PERIODIC_EXPORT_TESTS) as boolean,
shouldUseTranslationAPI: setGoogleApplicationCredentials() as boolean,
staticFilesAdminPort: parseInt(process.env.STATIC_FILES_ADMIN_PORT || '8080', 10) as number,
staticFilesClientPort: parseInt(process.env.STATIC_FILES_CLIENT_PORT || '8080', 10) as number,
staticFilesAdminPort: parseInt(process.env.STATIC_FILES_ADMIN_PORT | process.env.STATIC_FILES_PORT | '8080', 10) as number,
staticFilesClientPort: parseInt(process.env.STATIC_FILES_CLIENT_PORT | process.env.STATIC_FILES_PORT | '8080', 10) as number,
staticFilesHost: process.env.STATIC_FILES_HOST as string,
twitterConsumerKey: process.env.TWITTER_CONSUMER_KEY || null as string | null,
twitterConsumerSecret: process.env.TWITTER_CONSUMER_SECRET || null as string | null,
Expand Down

0 comments on commit 44f25e6

Please sign in to comment.