initialEnv

Read the captured initial environment

Next.js

initialEnv

Usage

A getter, not a function. Undefined before the initial environment is captured by loading. Use updateInitialEnv to change the baseline.


const nextEnv = require('@dotenvx/next-env')
nextEnv.loadEnvConfig(process.cwd(), true)
const baseline = nextEnv.initialEnv

markdown