Publishing overview
Publishing takes a snapshot of your app and makes it available at a web address. The snapshot is frozen: you can keep editing the draft afterwards without changing what your customers see, and you can publish again whenever the next version is ready. Every release is kept, so you
Publishing takes a snapshot of your app and makes it available at a web address. The snapshot is frozen: you can keep editing the draft afterwards without changing what your customers see, and you can publish again whenever the next version is ready. Every release is kept, so you can compare releases and roll back.
When to use
- Your app is ready for your team or customers.
- You changed the draft and want the live app to catch up (republish).
- You want a private test copy for colleagues before going live (staging).
The publishing lifecycle
Draft (editor) --publish--> Staging (/s/<slug>, test data, private test copy)
|
+---------publish--> Production (/a/<slug>, <slug>.<root domain>, custom domain, live data)
|
republish / roll back / unpublish- Build and preview the draft. Every edit is saved as a version.
- Publish from the top bar. The dialog runs a checklist; problems marked as errors must be fixed, warnings are advisory. See Publish validation.
- Choose Production (live) or Staging preview (test data), add optional release notes, and click Publish.
- Share the link. For production, the app is reachable at its path address and, when the platform has wildcard DNS, at its subdomain; custom domains can be connected in Settings › Domains.
- Keep working on the draft. When ready, publish again: the new release replaces the previous one, which stays in the deployment history for rollback.
What gets published
The complete app definition at that version: pages, components, data model, workflows, roles and permissions, theme, assets references, settings and the environment's plain variables. Secrets are never included; the live app reads them on the server from the Production environment.
Data is not "published": the live app uses its own live records, which start empty unless you import them.
Who can publish
| Action | Minimum workspace role |
|---|---|
| View the checklist and deployments | Viewer |
| Publish, deploy to staging, roll back | Editor |
| Unpublish, delete the project, manage domains and secrets | Admin |
After publishing
The success screen shows the app link with Open App, Copy Link, View Deployment (Versions › Deployments), Install PWA instructions and Manage Domain. The version is named "Live v12" (or "Staging v12") in Version history, and the publish is recorded in the audit log.
Common mistakes
- Expecting draft changes to appear live immediately. Only a new publish updates the live app.
- Publishing with warnings you have not read. Warnings do not block, but "Anyone can read every Customers record" is worth a second look.
- Forgetting Production secrets. A secret configured only in Development makes the checklist fail for production ("needs secret … in production").
Advanced
Publishing creates a deployments row pointing at the frozen project_versions row of the current draft, marks the previous active deployment as superseded, and records a create_published_version system command in the transaction history. The runtime resolves live and staging channels from the project's liveDeploymentId and stagingDeploymentId. See src/server/publishing/service.ts.