Preserve local environment variables when linking with the Vercel CLI
Mirrored from Vercel — AI for archival readability. Support the source by reading on the original site.
The Vercel CLI now preserves your .env.local file when running vercel link. Previously, linking could overwrite variables already in the file. The CLI now updates VERCEL_OIDC_TOKEN if it exists, or appends it if missing, without touching anything else.
Run pnpm i -g vercel@latest to update, then run vercel link to get started. Learn more in the vercel link documentation.
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.