MCPcopy Index your code
hub / github.com/subquery/subql / getWebpackEnvDefinitions

Function getWebpackEnvDefinitions

packages/cli/src/utils/env.ts:38–48  ·  view source on GitHub ↗
(envConfig: EnvConfig)

Source from the content-addressed store, hash-verified

36 * @returns Object with process.env.* definitions for webpack
37 */
38export function getWebpackEnvDefinitions(envConfig: EnvConfig): Record<string, string> {
39 const definitions: Record<string, string> = {};
40
41 Object.keys(envConfig).forEach((key) => {
42 if (envConfig[key] !== undefined) {
43 definitions[`process.env.${key}`] = JSON.stringify(envConfig[key]);
44 }
45 });
46
47 return definitions;
48}

Callers 3

env.spec.tsFile · 0.90
getBaseConfigFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected