default value for env variable

This commit is contained in:
Peter Clement 2022-05-19 10:56:51 +01:00
parent feb9973d22
commit 8c95429b08
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ const DEFAULT_TEMPLATES_BUCKET =
"prod-budi-templates.s3-eu-west-1.amazonaws.com" "prod-budi-templates.s3-eu-west-1.amazonaws.com"
exports.fetch = async function (ctx) { exports.fetch = async function (ctx) {
let type = env.TEMPLATE_REPOSITORY || "app" let type = env.TEMPLATE_REPOSITORY
let response, let response,
error = false error = false
try { try {

View File

@ -78,7 +78,7 @@ module.exports = {
ALLOW_DEV_AUTOMATIONS: process.env.ALLOW_DEV_AUTOMATIONS, ALLOW_DEV_AUTOMATIONS: process.env.ALLOW_DEV_AUTOMATIONS,
DISABLE_THREADING: process.env.DISABLE_THREADING, DISABLE_THREADING: process.env.DISABLE_THREADING,
SQL_MAX_ROWS: process.env.SQL_MAX_ROWS, SQL_MAX_ROWS: process.env.SQL_MAX_ROWS,
TEMPLATE_REPOSITORY: process.env.TEMPLATE_REPOSITORY, TEMPLATE_REPOSITORY: process.env.TEMPLATE_REPOSITORY || "app",
_set(key, value) { _set(key, value) {
process.env[key] = value process.env[key] = value
module.exports[key] = value module.exports[key] = value