Add Vercel shared environment variables via scope.kind - #13
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Supports Vercel team shared environment variables alongside existing project env, selected by
scope.kind(same pattern as GitHub’srepository|environment).Destination
teamIdrequired (breaking)projectoptional — required only forscope.kind: environmentScope modes
scope.kindenvironment/v10//v9project envproject; noscope.projectsshared-environment/v1/env?teamId=scope.projects; nogitBranchShared list/prune matching: targets ∩ + type vs kind + exact
projectIdset vsscope.projects(missing/empty ↔ unlinked only).Offline
secretsync validatenow catches missingteamId, missing project for environment kind, and invalid scope kind/projects/gitBranch.Breaking
teamIdon Vercel destinationsscope.kind(environmentorshared-environment)Examples, init template, fixtures, and README updated accordingly.