Setting environment variables for isolated-vm to always be used.

This commit is contained in:
mike12345567 2024-02-19 17:50:27 +00:00
parent 656897c492
commit 865e9ac111
1 changed files with 2 additions and 2 deletions

View File

@ -107,6 +107,8 @@ const environment = {
parseIntSafe(process.env.JS_RUNNER_MEMORY_LIMIT) ||
DEFAULTS.JS_RUNNER_MEMORY_LIMIT,
LOG_JS_ERRORS: process.env.LOG_JS_ERRORS,
ISOLATEDVM_QUERY_TRANSFORMERS: true,
ISOLATEDVM_JS_RUNNER: true,
// old
CLIENT_ID: process.env.CLIENT_ID,
_set(key: string, value: any) {
@ -127,8 +129,6 @@ const environment = {
getDefaults: () => {
return DEFAULTS
},
ISOLATEDVM_QUERY_TRANSFORMERS: !!process.env.ISOLATEDVM_QUERY_TRANSFORMERS,
ISOLATEDVM_JS_RUNNER: !!process.env.ISOLATEDVM_JS_RUNNER,
}
function cleanVariables() {