Next.js Discord

Discord Forum

Catch client side errors in build or CI/CD time

Unanswered
Cuban Crocodile posted this in #help-forum
Open in Discord
Cuban CrocodileOP
Hi all.
I have an app (pages). During the build I build all the pages statically.
After a successful build, there may still be client-side JS errors on the pages (which are usually caught using Error boundaries).
Question:
is there any way to somehow hydrate the static HTML during build time (or during the CI/CD process) to find out if there are client side errors and drop the build/stop the release if there are any?

0 Replies