Vercel Sandbox now supports setting environment variables at creation
Key point
When creating a Vercel Sandbox, you can now set environment variables that are automatically available across all commands.
Details
The SDK and CLI for Vercel Sandbox now support setting environment variables at the time a sandbox is created.
When performing multi-step processes such as installing dependencies, building a project, and running a dev server, you no longer need to repeatedly enter the same environment variables at every step. Environment variables set at creation time are automatically inherited and used across all runCommand calls.
If needed, you can also pass environment variables through runCommand that apply only to an individual command, overriding the existing values. To use the latest features, update the Sandbox CLI and SDK via npm i @vercel/sandbox.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.