Preview your app
Open your running project beside its conversation, check it at phone size, and ask the agent to repair a broken build.
Open the preview
Preview is the first tab in the workspace panel. On a wide screen it opens by itself when a task that changed your app finishes. On a phone or tablet, or whenever the panel is hidden, choose Open workspace panel at the top right of the workspace. The first build can take a moment. When the app appears, try the part you asked the agent to change.
Choose Open in a new tab to use the app outside the side panel. That’s the easiest way to check a layout at full width.
Move around your app
Back, Forward, and the address bar work like a browser’s. Type a path such as /about in the address bar to jump to another page of your app. Choose Copy preview URL to copy the address you’re on.
To compare two pages side by side in time, choose + beside the tabs and open a second Preview tab.
Reload after an edit
Choose Reload page to load the running app again. To check whether data survives a refresh, enter something in the app first, then reload.
Check a phone layout
The buttons at the right of the preview toolbar set its size:
- Fill preview pane uses all the space in the panel.
- Mobile preview shows your app in a phone-sized frame. Choose the phone’s name under the frame to pick a different model.
- Resizable preview lets you drag the frame’s edges to any width and height.
Drag the border between the conversation and the panel to give the preview more room.
Repair a broken preview
If a task is still running, wait for it to finish. If the build has finished and the app still won’t open, describe what went wrong in chat and ask the agent to fix it. Open Changes to review the edits.
If the preview opens but one action fails, describe the steps in project chat. Include the error text or attach a screenshot.
Share a finished version
The preview is only for you. Use Publish to create a public link you can send to someone else.