Changelog

Private preview support, auto-wake & CodeSandbox SDK improvements
Here are the latest updates to CodeSandbox SDK, including some popular feature requests.
Hey hey 👋
We're back with another CodeSandbox update!
Here's what we've been cooking for the last few weeks.
What's new?
Private Preview Support 🔒
It's now possible to access preview URLs for private sandboxes! 🎉 If a sandbox is private, its previews won't be accessible unless a preview token is provided. Check out our Docs for details on creating preview tokens (code preview below).

Auto Wake Strategy 💤
When a sandbox is hibernated, we automatically wake it when it gets an HTTP request to any preview URL. In the past, this caused some confusion, because even WebSocket requests would wake the sandbox. In many cases, this meant that if a user had a preview open (with an HMR connection from the dev server) they would continuously wake the sandbox. Because of this, we have introduced an API to configure when a sandbox should be woken. Now, whenever you create, start or open a sandbox, you can configure this:

CodeSandbox SDK Improvements & Bug Fixes
Added support for -name, -vm-tier and -path to Snapshot Builder.
Added support for -since when listing sandboxes with the CLI.
Added the ability to define timeout when waiting for port!
Fixed running CSB SDK in modern Node versions in CJS env (thanks, Wylie!)
When hibernating and shutting down multiple sandboxes using the CLI, do it in parallel instead of sequentially.
When sandboxes run out of credits, we will hibernate them instead of shutting them down.
That's all - short & sweet!
We have some huge updates coming for CodeSandbox SDK, so stay tuned.
See you soon 👋