Menu

Vercel Sandboxes now allow unique, customizable names - Vercel
📰

Vercel Sandboxes now allow unique, customizable names - Vercel

Vercel News·Marc Codina Segura·6 months ago
#hPTmtR8Z
#vercel#sandbox#user#beta#name
Reading 0:00
15s threshold

Vercel Sandboxes created with the latest beta package will now have a unique, customizable name within your project, replacing the previous ID-based identification. Names make sandboxes easy to find and reference:

import { Sandbox } from '@vercel/sandbox' ;

// Create a named sandbox

const sandbox = await Sandbox . create ( { name : 'user-a-workspace' } ) ;

await sandbox . runCommand ( 'npm' , [ 'install' ] ) ;

await sandbox . stop ( ) ;

// Later, resume where you left off

const sandbox = await Sandbox . get ( { name : 'user-a-workspace' } ) ;

await sandbox .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.