Overview
Ask the agent to run your app’s dev server and you can view the running app from the session, with no deploy needed. Use it to check UI changes before opening a PR.Start a preview
Prompt the agent, for example:View the preview
Once a server is registered, either:- Click the server icon in the session header and pick the server, or
- Open Session properties and click View next to the server under Local Servers
A preview is only available for the duration of the Blocks session. When the session ends, the preview goes offline.
Configure your app
Add the variables your app needs (API URLs, keys, and so on) under Settings → Environment Variables. See Environment Variables. They’re available to the dev server at runtime. Your framework’s rules for client-side variables still apply, for example theNEXT_PUBLIC_ and VITE_ prefixes.
Tips
- Ask the agent to bind the server to
0.0.0.0if the preview doesn’t load - Vite’s allowed-hosts check is preconfigured for previews

