Cloudfest Conference 2025

Use code HH20 for 20% off an event ticket!

Yesterday's Top Poster

Sandbox now supports sudo and installing RPM packages

  • Thread starter Thread starter Laurens Duijvesteijn, Javi Velasco, Guðmundur
  • Start date Start date
You can now run commands with sudo inside Vercel Sandbox, giving you full control over runtime environment setup, just like on a traditional Linux system.

This makes it possible to install system dependencies at runtime, like Go, Python packages, or custom binaries, before executing your code.

sudo is available via the runCommand method:


The sandbox sudo configuration is designed to be easy to use:


  • PATH is preserved


  • HOME is set to /root


  • Custom environment variables like env: { FOO: "bar" } are passed through

With sudo on Sandbox it's easier to run untrusted code in isolated environments with the right permissions, with no workarounds required.

Learn more about Vercel Sandbox and sudo in the documentation.

Read more

Continue reading...
 
Back
Top