Vouch 3.0 is live, with a merge gate for every pull request.

Vouch 3.0 is live, with a merge gate for every pull request.

Engineering

5 min read

Why a preview deployment catches what local testing misses

Local runs prove the code works on one machine. A preview proves the change works where it will actually live.

Priya Raman

Co-founder and CTO

Abstract green cover art for the article Why a preview deployment catches what local testing misses

It works on my machine is a cliche because it is true so often. A laptop has warm caches, seeded data, relaxed timeouts and none of the real network between services. Passing there is necessary and nowhere near sufficient.

What the preview adds

A preview deployment runs the build your users will get, behind the real edge, talking to real services. Problems with environment variables, build flags, cold starts and cross-origin rules only show up here. So do the slow queries that a small local database hides.

Wiring tests to the preview

Trigger the run from the deployment event rather than the push, so the tests start when the preview is actually ready. Point the suite at the preview URL for that pull request, and post the verdict back to the pull request itself. The reviewer then reads one line instead of opening a dashboard.

Ship at agent speed. Merge knowing it works.

Start free with one app and one flow. Your first verdict takes about ten minutes.

Run 483 on preview

8 of 8 passed

Promo code applies discount

Checkout with a saved card

Guest checkout by email

Order shows in the account

Ready to merge. Replay attached.

Create a free website with Framer, the website builder loved by startups, designers and agencies.