docs
/
Take a product tour
Sign in
  1. Introduction
  2. Home
  3. Overview
  4. Getting started
  5. Explanation
  6. Component
  7. Slot
  8. Immersion
  9. Reference
      1. Installation
      2. Content rendering
      3. Query evaluation
      4. Data collection
      5. Event tracking
        1. Debugging
          1. Missing middleware
          2. Missing route context
          3. Missing environment variable
    1. Reference
    2. SDK
  1. Next.js
  2. Troubleshooting
  3. Common problems

Missing environment variable

Learn how to set up the required environment variables.

If you see an error like the one below, you probably forgot to set one of the required environment variables:

Error

Did you forget to set the SOME_ENV_VAR environment variable?

See the configuration section for more information on the required environment variables and how to set them up.

Previous
Missing route context
Next
<CroctProvider>
  • Resources
  • Documentation
  • Blog
  • Newsletter
  • Support
  • Slack community
  • API status
  • Company
  • Careers
  • Contact us
  • Legal
  • Privacy policy
  • Terms of service
  • Language
© Croct 2025