We would like to use router.catch()
feature, also sending error report to sentry
, when user hits error page. Ideally reusing next _error
page that we already have. Since proxy()
is disallowed, and other methods does not seem to work inside catch(render
/compute
/renderWithApp
), I can’t find a way to include js bundle to the custom error page. Is there anything we can do to implement this?
You should build a fully static error page and render it using serveStatic
.
What do you mean by this?