MCPcopy Create free account
hub / github.com/TanStack/router / defineReplaceEnv

Function defineReplaceEnv

packages/start-plugin-core/src/plugin.ts:448–456  ·  view source on GitHub ↗
(
  key: TKey,
  value: TValue,
)

Source from the content-addressed store, hash-verified

446}
447
448function defineReplaceEnv<TKey extends string, TValue extends string>(
449 key: TKey,
450 value: TValue,
451): { [P in `process.env.${TKey}` | `import.meta.env.${TKey}`]: TValue } {
452 return {
453 [`process.env.${key}`]: JSON.stringify(value),
454 [`import.meta.env.${key}`]: JSON.stringify(value),
455 } as { [P in `process.env.${TKey}` | `import.meta.env.${TKey}`]: TValue }
456}

Callers 1

configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected