MCPcopy Create free account
hub / github.com/subquery/subql / createSandboxProcessEnv

Function createSandboxProcessEnv

packages/node-core/src/utils/env.ts:38–49  ·  view source on GitHub ↗
(envConfig: EnvConfig)

Source from the content-addressed store, hash-verified

36 * @returns Object with environment variables for sandbox
37 */
38export function createSandboxProcessEnv(envConfig: EnvConfig): Record<string, string> {
39 const processEnv: Record<string, string> = {};
40
41 Object.keys(envConfig).forEach((key) => {
42 const value = envConfig[key];
43 if (value !== undefined) {
44 processEnv[key] = value;
45 }
46 });
47
48 return processEnv;
49}

Callers 2

env.spec.tsFile · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected