Localhost previews

A dev server's port opens in your browser. No tunnel, no deploy, no public URL to set up.


localhost:3000
$ pnpm devready on http://localhost:3000
A dev server on the machine, open in the preview panel.

Start a server

Run the dev server the way you always would. It binds to a port on the machine, the same as it would on your laptop.

$ pnpm dev
ready on http://localhost:3000

Open the preview

Cubs notices the port and offers it as a preview. Open it and the running app appears in a panel, served from the machine. There is nothing to expose to the internet and no build to ship, it is the live process, rendered in the app.

Same URL as the agent

The agent building the app points at the same localhost port you are viewing. When it changes a file and the server reloads, your preview reloads too. You are both looking at one running process, so there is never a question of whose copy is current.