Skip to content

Add Vercel shared environment variables via scope.kind - #13

Merged
achadha235 merged 2 commits into
mainfrom
cursor/vercel-shared-env-46d0
Jul 26, 2026
Merged

Add Vercel shared environment variables via scope.kind#13
achadha235 merged 2 commits into
mainfrom
cursor/vercel-shared-env-46d0

Conversation

@achadha235

Copy link
Copy Markdown
Owner

Summary

Supports Vercel team shared environment variables alongside existing project env, selected by scope.kind (same pattern as GitHub’s repository | environment).

Destination

  • teamId required (breaking)
  • project optional — required only for scope.kind: environment

Scope modes

scope.kind API Notes
environment /v10 / /v9 project env Needs destination project; no scope.projects
shared-environment /v1/env?teamId= Optional scope.projects; no gitBranch

Shared list/prune matching: targets ∩ + type vs kind + exact projectId set vs scope.projects (missing/empty ↔ unlinked only).

Offline secretsync validate now catches missing teamId, missing project for environment kind, and invalid scope kind/projects/gitBranch.

Breaking

  • Require teamId on Vercel destinations
  • Require explicit scope.kind (environment or shared-environment)

Examples, init template, fixtures, and README updated accordingly.

Open in Web Open in Cursor 

cursoragent and others added 2 commits July 25, 2026 18:35
Require destination teamId and explicit scope.kind (environment |
shared-environment). Project env keeps /v10 project APIs; shared env
uses /v1/env with optional scope.projects and exact projectId matching
for list/prune. Offline validate catches missing teamId/project/kind.

Co-authored-by: Abhishek Chadha <achadha235@users.noreply.github.com>
Use a generic _chunks helper and drop an unused type ignore so CI
typecheck passes.

Co-authored-by: Abhishek Chadha <achadha235@users.noreply.github.com>
@achadha235
achadha235 marked this pull request as ready for review July 26, 2026 07:39
@achadha235
achadha235 merged commit 801e24c into main Jul 26, 2026
2 checks passed
@achadha235
achadha235 deleted the cursor/vercel-shared-env-46d0 branch July 26, 2026 12:04
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.

2 participants