Skip to content

Commit

Permalink
Merge pull request #407 from bigcapitalhq/auto-subscribe-free
Browse files Browse the repository at this point in the history
chore: add default value to env variable
  • Loading branch information
abouolia authored Apr 16, 2024
2 parents 60248ec + 956b9b6 commit 2ac7f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/src/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import dotenv from 'dotenv';
import path from 'path';
import { toInteger } from 'lodash';
import { defaultTo, toInteger } from 'lodash';
import { castCommaListEnvVarToArray, parseBoolean } from '@/utils';

dotenv.config();
Expand Down Expand Up @@ -207,7 +207,7 @@ module.exports = {
* NOTE: DO NOT CHANGE THIS OPTION OR ADD THIS ENV VAR.
*/
hostedOnBigcapitalCloud: parseBoolean(
process.env.HOSTED_ON_BIGCAPITAL_CLOUD,
defaultTo(process.env.HOSTED_ON_BIGCAPITAL_CLOUD, false),
false
),
};

0 comments on commit 2ac7f86

Please sign in to comment.