Preview overview
Preview lets you use your app the way a visitor would, before publishing: click buttons, fill forms, navigate between pages and watch workflows run, all on your draft version and on test data . Nothing you do in preview touches the live app or live records.
Preview lets you use your app the way a visitor would, before publishing: click buttons, fill forms, navigate between pages and watch workflows run, all on your draft version and on test data. Nothing you do in preview touches the live app or live records.
When to use
- After building a page, to check that buttons, forms and navigation behave.
- Before publishing, to walk through the app as a customer, a staff member or a visitor who is not signed in.
- To see a page at phone or tablet size.
How to open the preview
- In the builder, click Preview in the top bar. The canvas is replaced by the preview pane, which shows a DRAFT · TEST DATA badge.
- The preview starts on the page you were editing (or the home page for pages with parameters such as
/jobs/:id). - Use the app: navigation, buttons, forms and dialogs all work. A navigation trail under the toolbar (Home › Jobs › Job details) lets you jump back to an earlier page.
- Click Restart preview to reset state and return to the home page, Full screen to open the preview in a new browser tab, or Back to editor / press Esc to return.
What the preview runs
| In preview | |
|---|---|
| Version | Your current draft, including unsaved-looking edits (the editor autosaves) |
| Data | Test data (Data › Records › Test data) |
| Role | The role chosen in "Preview as" (see Preview as a role) |
| Secrets and variables | The Development environment |
| Page load actions | Run as in the live app (they do not run on the editor canvas) |
| Sign-in screens | Shown but simulated: "Sign-in is simulated in the builder preview — use Preview as" |
| Emails | Sent through the platform sender or your development RESEND_API_KEY; in local development they go to the dev outbox |
Full-screen preview
Full screen opens /preview/<project id>/… in a new tab with the same role and test email. It requires you to be signed in to the builder, shows a "Builder preview · draft version · test data" banner, and supports real URLs, refresh and deep links, which is useful for testing links you will share with teammates who have access to the project. Visitors without builder access cannot open it; share the staging URL instead (see Draft, staging and live).
Example
Testing a quote approval flow:
Preview as: Customer as user email: anna@example.com Home › My quotes › Quote #1042 › [Approve] → workflow "Approved quote → create job" runs on test data → Logic › Run history shows the run and its steps
Common mistakes
- Looking for live records in preview. Preview always uses test data. Add test records in Data › Records or generate sample data.
- Testing sign-up or password reset in preview. These are simulated. Use the staging deployment to test real sign-in.
- Thinking preview changes were saved for customers. Records created in preview are test records; publish to update the live app.
Advanced
The preview pane renders the same AppShell as the live app with mode: "preview" and channel: "draft", after filtering the project with configForUser() for the chosen role, so the preview shows exactly the configuration that role would receive. The full-screen route is src/app/preview/[projectId]/[[...path]]/page.tsx.