Skip to content

fix: add missing env vars to turbo.json globalEnv#1932

Open
victor-inkeep wants to merge 1 commit intomainfrom
fix/turbo-env-vars
Open

fix: add missing env vars to turbo.json globalEnv#1932
victor-inkeep wants to merge 1 commit intomainfrom
fix/turbo-env-vars

Conversation

@victor-inkeep
Copy link
Contributor

Summary

Adds 9 missing environment variables to turbo.json globalEnv that are set on Vercel but were not declared in Turbo's configuration. Without these, Turbo strips the env vars from the build environment, causing build warnings and potential runtime failures.

Added variables:

  • INKEEP_AGENTS_API_URL
  • INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET
  • INKEEP_AGENTS_MANAGE_UI_PASSWORD
  • PUBLIC_INKEEP_AGENTS_API_URL
  • NANGO_SECRET_KEY
  • GOOGLE_CLIENT_SECRET
  • PUBLIC_GOOGLE_CLIENT_ID
  • TRUSTED_ORIGIN
  • ENABLE_AUTHZ

Test plan

  • Verify Vercel build no longer shows missing from "turbo.json" warnings for these variables

Made with Cursor

Adds INKEEP_AGENTS_API_URL, NANGO_SECRET_KEY, PUBLIC_INKEEP_AGENTS_API_URL,
GOOGLE_CLIENT_SECRET, PUBLIC_GOOGLE_CLIENT_ID, TRUSTED_ORIGIN,
INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET, INKEEP_AGENTS_MANAGE_UI_PASSWORD,
and ENABLE_AUTHZ to turbo.json globalEnv so Vercel builds can access them.

Without these, Turbo strips the env vars from the build environment causing
build warnings and potential runtime failures.
@vercel
Copy link

vercel bot commented Feb 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agents-api Ready Ready Preview, Comment Feb 11, 2026 9:47pm
agents-docs Ready Ready Preview, Comment Feb 11, 2026 9:47pm
agents-manage-ui Ready Ready Preview, Comment Feb 11, 2026 9:47pm

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Feb 11, 2026

⚠️ No Changeset found

Latest commit: de48f76

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@inkeep
Copy link
Contributor

inkeep bot commented Feb 11, 2026

No docs changes detected - this is an internal build configuration fix for Turborepo environment variables.

Copy link
Contributor

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review Summary

(0) Total Issues | Risk: Low

This PR correctly adds 9 environment variables to Turbo's globalEnv array to ensure they are passed through to builds and affect cache invalidation. The changes are straightforward and appropriate.

💭 Consider (2) 💭

💭 1) turbo.json:25 ENABLE_AUTHZ has no current source code usage

Issue: The ENABLE_AUTHZ variable is being added to globalEnv, but grep across the codebase found no actual usage of this variable in any source code files.

Why: Adding unused env vars to globalEnv is low-risk but introduces drift between configuration and actual code. If this is intentional for a future feature, that's fine — just worth confirming.

Fix: Verify this is intentionally forward-looking. If not needed yet, consider removing it from this PR.

💭 2) .env.example Some added vars are undocumented for self-hosting

Issue: Several variables being added to globalEnv aren't documented in .env.example:

  • GOOGLE_CLIENT_SECRET / PUBLIC_GOOGLE_CLIENT_ID (used in agents-api/src/index.ts for Google OAuth)
  • TRUSTED_ORIGIN (defined in packages/agents-core/src/env.ts)
  • ENABLE_AUTHZ (if it has planned use)

Why: Self-hosters rely on .env.example as the canonical configuration template. When globalEnv grows out of sync, it creates confusion.

Fix: Consider a follow-up PR to document these variables in .env.example.


✅ APPROVE

Summary: Clean build configuration fix. The 9 env vars are legitimately used across the codebase (confirmed via grep across 111+ files) and declaring them in globalEnv is the correct fix for Vercel build warnings. The two "Consider" items are minor documentation suggestions that don't block this PR. Ship it! 🚀

Discarded (1)
Location Issue Reason Discarded
turbo.json:17-26 Trailing comma convention is correct Positive observation, not actionable
Reviewers (1)
Reviewer Returned Main Findings Consider While You're Here Inline Comments Pending Recs Discarded
pr-review-devops 3 0 2 0 0 0 1
Total 3 0 2 0 0 0 1

@github-actions github-actions bot deleted a comment from claude bot Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant