use env variable as the folder setting
This commit is contained in:
parent
ae8548b153
commit
f999554361
|
@ -7,7 +7,7 @@ const DEFAULT_TEMPLATES_BUCKET =
|
|||
"prod-budi-templates.s3-eu-west-1.amazonaws.com"
|
||||
|
||||
exports.fetch = async function (ctx) {
|
||||
let type = env.TEST_ENV ? "qa" : "app"
|
||||
let type = env.TEMPLATE_REPOSITORY || "app"
|
||||
let response,
|
||||
error = false
|
||||
try {
|
||||
|
|
|
@ -78,7 +78,7 @@ module.exports = {
|
|||
ALLOW_DEV_AUTOMATIONS: process.env.ALLOW_DEV_AUTOMATIONS,
|
||||
DISABLE_THREADING: process.env.DISABLE_THREADING,
|
||||
SQL_MAX_ROWS: process.env.SQL_MAX_ROWS,
|
||||
TEST_ENV: process.env.TEST_ENV,
|
||||
TEMPLATE_REPOSITORY: process.env.TEMPLATE_REPOSITORY,
|
||||
_set(key, value) {
|
||||
process.env[key] = value
|
||||
module.exports[key] = value
|
||||
|
|
Loading…
Reference in New Issue