Release & rollback workflow
Ship changes calmly by testing in isolated Preview, publishing atomic releases, protecting Live users during broken builds, and executing instant rollbacks.
Why Preview and Live separation keeps launches calm
Once real customers rely on your product, fear of breaking production slows teams down. ExaSpark removes that tension by keeping a strict boundary between your Preview workspace and your Live production site.
Every prompt, layout adjustment, and test checkout runs inside Preview with its own isolated Preview database and file storage. Customers interact strictly with Live, served from an immutable compiled build backed by your Live database and uploaded files.
Nothing reaches real users until you click Publish—and every publish records a saved version you can restore in one click.
| Safety layer | Where it operates | What it changes | Effect on Live customer data |
|---|---|---|---|
| Workspace Undo / checkpoints | Preview workspace | Reverts recent Agent prompts and file edits | None |
| Preview testing | Isolated Preview runtime | Runs unshipped UI, handlers, and test data | None |
| Atomic Publish | Live deployment | Builds an immutable release and switches traffic | Preserves Live rows and uploaded files |
| 1-click Live Rollback | Live release history | Switches traffic immediately to a prior build | Preserves all Live rows and files created since deploy |
Read Preview vs Live for full details on how secrets, databases, and Stripe modes stay separated.
The five-stage release workflow
Adopt a repeatable rhythm so shipping ten updates a week stays as calm as shipping one.
Batch related changes cleanly
Ship one cohesive change per release (such as a pricing refresh or onboarding tweak) rather than mixing risky schema changes with copy edits.
Test key journeys in Preview
Walk through login, form validation, role boundaries, error states, and mobile screens in Preview and Browser Device Lab.
Verify schema compatibility
Confirm new columns are nullable or carry defaults so older code can read Live rows safely.
Click Publish for an atomic release
Open Publish in the top bar. ExaSpark compiles frontend and backend together and switches Live traffic only after every check passes.
Run a two-minute Live smoke test
Open your Live URL in an incognito tab, test one public route and one authenticated write, and inspect Analytics & live health.
Keeping live users safe during broken builds
Interactive previews optimize for fast iteration. Production publishes run stricter TypeScript, import, and bundling checks to trap bugs before customers see them.
When a recent edit leaves a broken import or type mismatch during Publish:
- Live users stay online uninterrupted. ExaSpark compiles the new build in isolation and aborts before touching Live routing, keeping your last healthy release serving traffic.
- Diagnostics go straight to the Agent. The Publish panel displays the exact compiler trace beside Ask AI to fix, letting the Agent patch the root cause directly.
- Clean retry. Re-verify the repaired screen in Preview, then click Publish again.
If two fix attempts stall on the same error, revert to your last clean checkpoint via Checkpoints & undo or follow Breaking fix loops.
Safe database changes across releases
Because a 1-click Live rollback restores application code while keeping Live database rows intact, destructive schema edits can break older builds during a rollback.
Use the expand-and-contract pattern whenever changing active production tables:
| Schema change | Rollback safety | Recommended pattern |
|---|---|---|
| Add a new table | Safe | Ship freely; prior releases ignore the new table |
| Add a nullable or defaulted column | Safe | Ship freely; older builds continue reading existing fields cleanly |
| Rename a column in place | Risky | Add the new column first, backfill data, switch reads, retire old column later |
| Drop an active column | Risky | Deploy code that stops reading the column first; drop it in a follow-up release |
| Enforce `NOT NULL` immediately | Risky | Populate defaults on existing Live rows before tightening the constraint |
State backward compatibility directly when prompting Live schema changes:
Add a nullable company_size column and a default-false onboarding_completed flag to the organizations table so existing Live records load cleanly and rolling back to the previous release remains safe. Wire both fields into the settings form.
Explore migration patterns further in Safe schema migrations.
Executing a calm 1-click rollback
When users report a broken sign-in, blank checkout, or clipped hero right after a deploy, restore stability first and debug calmly afterward.
Roll back immediately vs fix forward
- Roll back immediately when checkout, login, core navigation, primary landing layouts, or data writes break on Live.
- Fix forward in Preview when the flaw is minor (a typo or secondary spacing tweak) and core flows still work cleanly.
Open release history
Click Publish in the top bar and open Versions.
Pick the last healthy build
Locate the stable snapshot timestamped right before the regression shipped.
Promote the prior version
Click Rollback to cut Live traffic back immediately without waiting for a full rebuild.
Verify Live recovery
Reload your Live URL in an incognito tab and confirm the broken flow succeeds.
Fix calmly in Preview
Reproduce the bug in Preview without time pressure, test end to end, and publish a clean release.
Team release habits and pre-publish audits
On Pro ($25/mo or $20/mo billed annually, including 3 builder seats), teammates collaborate in the same project. Three lightweight habits keep releases smooth:
- Coordinate before clicking Publish. Check with teammates so half-finished Preview edits do not ship early.
- Confirm Live secrets and Stripe mode. Keep test keys in Preview and live Stripe keys plus verified sending domains on Live.
- Run a pre-launch sanity prompt. Catch dead handlers, placeholder copy, and hardcoded preview URLs before major milestones:
Audit our app before publishing to Live: check navigation links and primary CTA buttons for dead handlers, remove hardcoded preview URLs or placeholder copy on public pages, verify forms show loading and error states cleanly, and summarize any fixes made.
Release troubleshooting reference
| Symptom | Likely cause | Immediate fix |
|---|---|---|
| Publish fails while Preview worked | Stricter production TypeScript or bundler check caught an error | Click Ask AI to fix, verify in Preview, and publish again |
| Live app opens with empty tables | Preview test rows stay in the isolated Preview database | Seed initial Live records in Cloud or run a live signup flow |
| Old UI briefly shows after publish | Open browser tab cached the earlier static bundle | Hard-refresh or verify in a fresh incognito window |
| Rollback restored UI, one route errors | A destructive column drop broke compatibility with the older build | Restore the column in Cloud or ship an additive forward patch |
| Login or Stripe webhook failed on Live | External callback URLs still target Preview or an old host | Update OAuth redirects and Stripe webhooks to your Live domain |