In Next.js: How to redirect all empty routes to a route of my choosing

前端 未结 0 1677
慢半拍i
慢半拍i 2020-11-22 12:41

If I type in a dead endpoint in Next.js I get a 404 error. Instead, I want all unused routes to redirect to a default route and in this case, the landing page.

I have

相关标签:
回答
  • 消灭零回复
提交回复
热议问题