Draft, staging and live
Your app exists in three places at once: the draft you edit, an optional staging copy for testing, and the live app your customers use. Understanding which one you are looking at, and which data and secrets each uses, avoids most publishing surprises.
Your app exists in three places at once: the draft you edit, an optional staging copy for testing, and the live app your customers use. Understanding which one you are looking at, and which data and secrets each uses, avoids most publishing surprises.
The three channels
| Channel | Where | Who can open it | Data | Secrets and variables | How it changes |
|---|---|---|---|---|---|
| Draft | The editor and Preview (/preview/<project id>) | Builder users with access to the project | Test | Development | Every edit, instantly |
| Staging | <builder address>/s/<slug> | Anyone with the link (not indexed by search engines) | Test | Staging | When you "Deploy to staging" |
| Live | <builder address>/a/<slug>, <slug>.<root domain>, custom domains | Your customers and team | Live | Production | When you "Publish" to production |
Staging shows an amber banner: "Staging preview — uses test data. Not visible to your customers." Its browser title starts with "[Staging]". Draft previews show "Builder preview · draft version · test data".
When to use staging
- Let a colleague without builder access click through a release before it goes live.
- Test real sign-in, sign-up and password reset (simulated in the builder preview).
- Test on a real phone, including camera, location and install.
- Try Staging secrets (for example a sandbox payment or email key) before Production.
How to deploy to staging
- Click Publish in the top bar.
- Choose Staging preview ("A private test copy with test data. Try before going live.").
- Review the checklist; fix any errors.
- Click Deploy to staging. The success screen shows the
/s/<slug>link.
Staging and production are independent: deploying to staging never changes the live app, and publishing to production does not update staging. Each has its own entry in Versions › Deployments with its own rollback.
Example timeline
v30 draft Add "Request service" page
v31 draft Fix mobile layout
staging Deploy v31 -> colleagues test on /s/northside-repair
v32 draft Typo fix after feedback
live Publish v32 -> customers see it at northside-repair.<root domain>
v33+ draft Keep building; live stays on v32 until the next publishCommon mistakes
- Sending customers the staging link. They would be working on test data. Share the live address.
- Expecting staging to use live records. Staging always uses test data, by design.
- Setting a secret in Staging and wondering why production fails. Each environment has its own values; set it in Production too.
Advanced
Channels map to RuntimeContext.channel (draft | staging | live) and data environment (test for draft and staging, live for live). The staging route (src/app/s/[slug]) sets robots: { index: false, follow: false }. App user sessions are per project and environment, so staging sign-ins are separate from live sign-ins.