UNPKG

@nph.muller/next-runtime-env

Version:

Next.js Runtime Environment Configuration - Populates your environment at runtime rather than build time.

10 lines (9 loc) 229 B
/** * Returns the environment variables from the context. * * Usage: * ```ts * const { NODE_ENV, API_URL } = useEnvContext(); * ``` */ export declare const useEnvContext: () => import("../typings/process-env").ProcessEnv;