Bekijk alle projecten
Klant: Oersporto (uguryildiz.nl) — internal deployment practice
Jaar: 2026
Duur: Ongoing practice
Webontwikkeling

Productie Deploy Verificatie — Reproduceer Voordat je Uitbrengt

Een deployment-discipline rond één regel: reproduceer de productie-build op je eigen machine voordat je een hostingdashboard aanraakt, en verifieer de live URL met een echt verzoek in plaats van een groen statuslampje te vertrouwen.

De Uitdaging

Een deployment-pipeline is slechts zo betrouwbaar als zijn verificatiestap. Een geslaagde build, een groen vinkje in het dashboard en een live URL kunnen tegelijk waar zijn terwijl de functie die ertoe doet nog steeds stuk is — zoals het lead-capture-incident op deze site aantoonde. Het probleem is niet deployen; het is weten of wat gedeployed is daadwerkelijk werkt.

De Oplossing

De praktijk is gelaagd. Eerst wordt het exacte productie-buildcommando lokaal uitgevoerd — nooit de dev-server, die ontbrekende omgevingsvariabelen, verkeerd geschreven imports en verkeerd geplaatste dependencies verbergt. Daarna wordt de eerste fout in de output gelezen in plaats van de laatste, omdat buildfouten zich opstapelen. Vervolgens worden de gebruikelijke oorzaken in vaste volgorde nagelopen: ontbrekende variabelen, verkeerd geplaatste dependencies, case-gevoeligheid, hardcoded localhost, Node-versie. Tot slot wordt het gedeployde artefact beproefd met een echt verzoek dat een echt backend-pad raakt.

Resultaten

  • Production build reproduced locally and verified green before any host action
  • Node version mismatch risk identified against the deployed runtime
  • Runtime log monitoring established as a standard verification step
  • Deploy claims now require a real exercised path, not a dashboard indicator

Deployment failures are rarely what the error message says they are. The discipline described here exists because the opposite approach — deploy, watch a dashboard, assume the best — produced a live site that reported successful leads it never saved.

Reproduce locally first. The single highest-value habit is running the exact production build command on the local machine before touching any hosting configuration. A development server is a different program with different resolution rules; it will happily serve an application that cannot build. Missing environment variables, imports whose casing does not match the filename and dependencies sitting in the wrong manifest section all survive development and fail in production. If the build fails locally, it was never a hosting problem.

Read the first error. Build output cascades. The final message in a failed build is almost always a symptom of something reported hundreds of lines earlier, and chasing it sends you further from the cause each time. The first error is the one that matters.

Verify the deployed thing. A passing build is not a working application. Verification means loading the live URL, confirming the page renders, exercising one real path that reaches the backend, and reading the runtime logs for the errors a build step is structurally incapable of catching. Anything less than that is a guess wearing a status badge.

Technologieën

VercelGitHubNext.jsNode.jsGitRuntime Logs
WhatsApp