Expand description
Environment Variable support for turbopack.
Environment variables can come from multiple sources, including the rust
process’s env (immutable and by passing FOO=BAR
keys when executing the
turbopack binary) or loaded via dotenv files.
Dotenv file loading is a chain. Dotenv files that come first in the chain have higher priority to define a environment variable (later dotenv files cannot override it). Later dotenv files can reference variables prior defined variables.
Modules§
Structs§
- Embeddable
Process Env - Encodes values as JS strings so that they can be safely injected into a JS output.
- Process
EnvAsset - The
process.env
asset, responsible for initializing the env (shared by all chunks) during app startup. - Process
EnvIssue - An issue that occurred while resolving the parsing or evaluating the .env.
- TryDotenv
Process Env