MCPcopy
hub / github.com/amplication/amplication / get

Function get

packages/gpt-gateway-admin/src/env.ts:6–9  ·  view source on GitHub ↗

* Environment variables can come from process.env or from window * This module abstracts the source of them.

(name: string)

Source from the content-addressed store, hash-verified

4 */
5
6function get(name: string): string | undefined {
7 // @ts-ignore
8 return window[name] || process.env[name];
9}
10
11export const REACT_APP_SERVER_URL = get("REACT_APP_SERVER_URL");

Callers 7

authorizeContextMethod · 0.85
validatePermissionsMethod · 0.85
prepareContextFunction · 0.85
env.tsFile · 0.85
OptionSetOptionsFunction · 0.85
PropertyTypesFunction · 0.85
prepareContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected