Chapter 121: Environment variables
Core Idea
<AvailableFrom v="2. 1.
Key Concepts
- Passing variables from the CLI
- Using a dotenv file
- Using in Node.js APIs
- The envVariables option
- See also
Code Examples
REMOTION_MY_VAR=hello_world npm run dev
- What it demonstrates: Usage pattern for Environment variables from the official docs.
Key Takeaways
- Understand passing variables from the cli when working with Environment variables.
- Understand using a dotenv file when working with Environment variables.
- Understand using in node.js apis when working with Environment variables.
- Understand the envvariables option when working with Environment variables.
- Understand see also when working with Environment variables.
Connects To
- Chromium Flags: related page in the Rendering & SSR section.
- Compare ssr: related page in the Rendering & SSR section.
- Dataset Render: related page in the Rendering & SSR section.