Skip to main content

Sandbox now supports sudo and installing RPM packages

By Steven Van ·

Vercel Sandbox adds a sudo option to runCommand, so developers can install system packages like Go before running code.

Vercel Sandbox now supports running commands with sudo, using the sudo: true option on the runCommand method. That makes it possible to install system dependencies at runtime, such as Go, Python packages, or custom binaries, before executing code inside the sandbox. The sudo configuration preserves PATH, sets HOME to /root, and passes through custom environment variables. Vercel says this removes the workarounds previously needed to run untrusted code with the right permissions inside Vercel's isolated microVMs. Read the full announcement.

Vercel
Vercel
The platform for frontend developers — deploy, preview, and scale web apps and AI agents with zero config.
View Vercel →

Original source

Read Sandbox now supports sudo and installing RPM packages on Creators Toolbox