INNER CODE UNIT · TypeScript

init

vercel/storage · packages/global-config/src/index.ts:59

function init(): void {
  if (!defaultEdgeConfigClient) {
    defaultEdgeConfigClient = createClient(
      process.env.GLOBAL_CONFIG ?? process.env.EDGE_CONFIG,
    );
  }
}

/**
 * Reads a single item from the default Global Config.
 *
 * This is a convenience method which reads the default Global Config.
 * It is conceptually similar to `createClient(process.env.GLOBAL_CONFIG).get()`.
 *
 * @see {@link EdgeConfigClient.get}
 * @param key - the key to read
 * @returns the value stored under the given key, or undefined
 */

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…