I'm trying to create a custom error page that will record any error to rollbar like error boundary in server side next.js
I'm following this tutorial for the _error.js
https://maxschmitt.me/posts/error-reporting-rollbar-nextjs/
The custom error page works when I tried run build & run start
, and the rollbar also record every error in that page
But when I deployed it using vercel, every error in server side will show this page.
My custom error page is overide by vercel error page, and the rollbar function is not working anymore.