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 layerWhere it operatesWhat it changesEffect on Live customer data
Workspace Undo / checkpointsPreview workspaceReverts recent Agent prompts and file editsNone
Preview testingIsolated Preview runtimeRuns unshipped UI, handlers, and test dataNone
Atomic PublishLive deploymentBuilds an immutable release and switches trafficPreserves Live rows and uploaded files
1-click Live RollbackLive release historySwitches traffic immediately to a prior buildPreserves 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.

  1. 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.

  2. Test key journeys in Preview

    Walk through login, form validation, role boundaries, error states, and mobile screens in Preview and Browser Device Lab.

  3. Verify schema compatibility

    Confirm new columns are nullable or carry defaults so older code can read Live rows safely.

  4. 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.

  5. 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 changeRollback safetyRecommended pattern
Add a new tableSafeShip freely; prior releases ignore the new table
Add a nullable or defaulted columnSafeShip freely; older builds continue reading existing fields cleanly
Rename a column in placeRiskyAdd the new column first, backfill data, switch reads, retire old column later
Drop an active columnRiskyDeploy code that stops reading the column first; drop it in a follow-up release
Enforce `NOT NULL` immediatelyRiskyPopulate defaults on existing Live rows before tightening the constraint

State backward compatibility directly when prompting Live schema changes:

Starter prompt · App

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.
  1. Open release history

    Click Publish in the top bar and open Versions.

  2. Pick the last healthy build

    Locate the stable snapshot timestamped right before the regression shipped.

  3. Promote the prior version

    Click Rollback to cut Live traffic back immediately without waiting for a full rebuild.

  4. Verify Live recovery

    Reload your Live URL in an incognito tab and confirm the broken flow succeeds.

  5. 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:
Starter prompt · App

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

SymptomLikely causeImmediate fix
Publish fails while Preview workedStricter production TypeScript or bundler check caught an errorClick Ask AI to fix, verify in Preview, and publish again
Live app opens with empty tablesPreview test rows stay in the isolated Preview databaseSeed initial Live records in Cloud or run a live signup flow
Old UI briefly shows after publishOpen browser tab cached the earlier static bundleHard-refresh or verify in a fresh incognito window
Rollback restored UI, one route errorsA destructive column drop broke compatibility with the older buildRestore the column in Cloud or ship an additive forward patch
Login or Stripe webhook failed on LiveExternal callback URLs still target Preview or an old hostUpdate OAuth redirects and Stripe webhooks to your Live domain

Next steps

Still have a question?Ask our team and other builders on Discord.

From the blog