When visiting a non-existent endpoint in Next.js, I receive a 404 error. What I actually want is for all unused routes to automatically redirect to a default route; specifically, the landing page.
I've spent more than an hour trying to figure this out and I don't think it should be such a complex task. It seems like it should be straightforward.
So, I've decided to seek some help on this.
Thank you!