Real-World Workflows · 20 min

Environments & variables

Keep dev/staging/prod separate using environment variables and n8n variables.

Key concepts

  • $env vs n8n Variables
  • Per-environment credentials
  • Config best practices

Exercise

Add an n8n Variable for the API base URL and switch it between staging and production.

Official docs