Merge pull request #5698 from Budibase/tweak/dev-license

Add isDev() to backend-core/env
This commit is contained in:
Rory Powell 2022-05-04 13:17:18 +01:00 committed by GitHub
commit 64c6c52c0c
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,10 @@ function isTest() {
)
}
function isDev() {
return process.env.NODE_ENV !== "production"
}
module.exports = {
JWT_SECRET: process.env.JWT_SECRET,
COUCH_DB_URL: process.env.COUCH_DB_URL || "http://localhost:4005",
@ -32,6 +36,7 @@ module.exports = {
TENANT_FEATURE_FLAGS: process.env.TENANT_FEATURE_FLAGS,
USE_COUCH: process.env.USE_COUCH || true,
isTest,
isDev,
_set(key, value) {
process.env[key] = value
module.exports[key] = value