diff --git a/runtimes/nodejs/src/support/cloud-sdk.ts b/runtimes/nodejs/src/support/cloud-sdk.ts index 534dcf1abd..7a378817e9 100644 --- a/runtimes/nodejs/src/support/cloud-sdk.ts +++ b/runtimes/nodejs/src/support/cloud-sdk.ts @@ -26,12 +26,7 @@ function createCloudSdk() { }, sockets: WebSocketAgent.clients, appid: Config.APP_ID, - env: { - DB_URI: Config.DB_URI, - SERVER_SECRET: Config.SERVER_SECRET, - RUNTIME_IMAGE: Config.RUNTIME_IMAGE, - ...process.env, - }, + env: process.env, } /** diff --git a/runtimes/nodejs/src/support/function-engine/vm.ts b/runtimes/nodejs/src/support/function-engine/vm.ts index 51a1dd4e76..3fd08cc8cd 100644 --- a/runtimes/nodejs/src/support/function-engine/vm.ts +++ b/runtimes/nodejs/src/support/function-engine/vm.ts @@ -54,7 +54,7 @@ export class FunctionVm { clearInterval: clearInterval, setTimeout: setTimeout, clearTimeout: clearTimeout, - process: { env: {} }, + process: { env: process.env }, URL: URL, fetch: globalThis.fetch, global: null,