mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
Merge pull request #407 from bigcapitalhq/auto-subscribe-free
chore: add default value to env variable
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import dotenv from 'dotenv';
|
import dotenv from 'dotenv';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { toInteger } from 'lodash';
|
import { defaultTo, toInteger } from 'lodash';
|
||||||
import { castCommaListEnvVarToArray, parseBoolean } from '@/utils';
|
import { castCommaListEnvVarToArray, parseBoolean } from '@/utils';
|
||||||
|
|
||||||
dotenv.config();
|
dotenv.config();
|
||||||
@@ -207,7 +207,7 @@ module.exports = {
|
|||||||
* NOTE: DO NOT CHANGE THIS OPTION OR ADD THIS ENV VAR.
|
* NOTE: DO NOT CHANGE THIS OPTION OR ADD THIS ENV VAR.
|
||||||
*/
|
*/
|
||||||
hostedOnBigcapitalCloud: parseBoolean(
|
hostedOnBigcapitalCloud: parseBoolean(
|
||||||
process.env.HOSTED_ON_BIGCAPITAL_CLOUD,
|
defaultTo(process.env.HOSTED_ON_BIGCAPITAL_CLOUD, false),
|
||||||
false
|
false
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user