Fix perRequestLimit

This commit is contained in:
Adria Navarro 2024-02-08 00:56:45 +01:00
parent 008b39abf4
commit 9d335b7fb1
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ export function init() {
vm = new IsolatedVM({
memoryLimit: env.JS_RUNNER_MEMORY_LIMIT,
timeout: env.JS_PER_EXECUTION_TIME_LIMIT_MS,
perRequestLimit: env.JS_PER_REQUEST_TIME_LIMIT_MS,
}).withHelpers()
bbCtx.vm = vm