Optional
defaultdefault target environment (used if env
is not provided)
token indicating a dotenv file
Optional
dynamicProgrammatic dynamic variables map. When provided, this takes precedence over GetDotenvOptions.dynamicPath.
Optional
dynamicpath to JS/TS module default-exporting an object keyed to dynamic variable functions
Optional
envtarget environment
Optional
excludeexclude dynamic variables from loading
Optional
excludeexclude environment-specific variables from loading
Optional
excludeexclude global variables from loading
Optional
excludeexclude private variables from loading
Optional
excludeexclude public variables from loading
Optional
loadload dotenv variables to process.env
Optional
loglog loaded dotenv variables to logger
Optional
loggerlogger object (defaults to console)
Optional
outputif populated, writes consolidated dotenv file to this path (follows dotenvExpand rules)
Optional
pathsarray of input directory paths
Optional
privatefilename token indicating private variables
Optional
useReserved: config loader flag (no-op). The plugin-first host and generator paths already use the config loader/overlay pipeline unconditionally (no-op when no config files are present). This flag is accepted for forward compatibility but currently has no effect.
Optional
varsexplicit variables to include
Options passed programmatically to
getDotenv
.