Capítulo 121 de 988

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

  1. Understand passing variables from the cli when working with Environment variables.
  2. Understand using a dotenv file when working with Environment variables.
  3. Understand using in node.js apis when working with Environment variables.
  4. Understand the envvariables option when working with Environment variables.
  5. 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.