M
M
mi1ord2019-11-20 11:19:11
JavaScript
mi1ord, 2019-11-20 11:19:11

How to write a single endpoint to intercept all urls in Next.js?

Good afternoon.
Faced, as for me, with some limitations of the next.js library.
The bottom line is that I have several filters on which the url is built. There is only one page in the application. Urls can be:

  • /
  • /one
  • /one/two
  • /one/two/three

That is, such nesting is necessary.
How to register an endpoint for this? In development mode, there is a redirect, but in production it's just a 404.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question