Next.js Discord

Discord Forum

Tracking 404 pages

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
Hello friends.

I'm trying to track which URLs are leading to 404 pages.

I am trying to check if broken URLs indexed on Google results are resulting in 404 pages in my project.

Are the methods in Next's Router capable of doing so? Or any middleware strategy?

I want to finally store these URLs in a service like Sentry or Open Search.

0 Replies