Skip to content

Document turbo.json environment variable configuration for SENTRY_SPOTLIGHT #868

@dcramer

Description

@dcramer

Summary

The documentation should include information about configuring the SENTRY_SPOTLIGHT environment variable in turbo.json for monorepo setups using Turborepo.

Context

When using Spotlight in a Turborepo monorepo, users need to configure environment variables properly to ensure Spotlight works across all packages/apps. The SENTRY_SPOTLIGHT environment variable needs to be declared in turbo.json for it to be available during builds and development.

Proposed Documentation Addition

Add a section explaining how to configure turbo.json for Spotlight:

{
  "globalEnv": ["SENTRY_SPOTLIGHT"],
  // or in pipeline configuration
  "pipeline": {
    "build": {
      "env": ["SENTRY_SPOTLIGHT"]
    },
    "dev": {
      "env": ["SENTRY_SPOTLIGHT"]
    }
  }
}

Benefits

  • Helps users working with Turborepo monorepos
  • Prevents confusion about why Spotlight might not be working in certain packages
  • Provides clear guidance for environment variable configuration

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions