Test and live data
Every entity in your app has two separate sets of records: test data and live data . The editor, the preview and the staging deployment use test data, so you can experiment freely; the published app uses live data, which your customers and team create. They never mix.
Every entity in your app has two separate sets of records: test data and live data. The editor, the preview and the staging deployment use test data, so you can experiment freely; the published app uses live data, which your customers and team create. They never mix.
When to use
- Filling pages with realistic records while designing them.
- Trying a workflow or a permission rule without touching real customer records.
- Importing a spreadsheet to seed your live app once it is ready.
Where each environment is used
| Where | Data | Secrets and variables |
|---|---|---|
| Build canvas and Preview | Test | Development |
Staging deployment (/s/<slug>) | Test | Staging |
Live app (/a/<slug>, subdomain, custom domain) | Live | Production |
Managing test data
- Open Data and select an entity, then the Records tab.
- Make sure the switch at the top says Test data (green dot).
- Add records by hand with Add record, or open the menu and choose Generate 5 / 10 / 25 sample records. Sample data uses the field types and options of the entity, so select fields get valid options and relations point at existing records.
- Import a CSV with Import; the result shows how many records were imported into test data.
- Delete all test records clears the entity's test data; live data is not affected. Deleting records cannot be undone with Ctrl+Z.
Managing live data
Switch to Live data (red dot). Only workspace admins and owners can view or edit live data from the Data view; editors get the message "Only admins and owners can view or edit live data." A red banner reminds you that you are editing what your customers see. CSV import into live data is the usual way to load your existing customer list before going live.
External sources
Entities mapped to an external database (PostgreSQL, Supabase) or a REST source follow the same rule: test data connects with your Development secrets, live data with Production secrets, so you can point test at a copy of your database and live at the real one. See Environment variables.
Example
Entity: Bookings Test data: 25 generated bookings, dates spread over the next month Live data: empty until the first customer books Preview: the Booking calendar shows the 25 test bookings Published: the calendar is empty, then fills as real bookings arrive
Common mistakes
- Wondering why the live app is empty. Test records are not copied to live. Import a CSV into live data or let real usage fill it.
- Testing on live data "just this once". Preview cannot use live data; use staging for a realistic run with test data, or an admin account in the published app for real data.
- Generating sample data for an entity with required relations before the related entity has records. Generate the parent entity first (Customers before Bookings).
Advanced
Records are stored with a project_id and an env of test or live; every query filters on both. The runtime channel decides the environment: draft and staging read test records, live reads live records. App users (sign-ups, sessions) are also separated per environment, so a customer who registers on staging does not exist on the live app.