A
A
Andrey Okhotnikov2019-07-31 11:48:43
React
Andrey Okhotnikov, 2019-07-31 11:48:43

Slash in Nextjs routes?

In Nextjs pages, routes are stored in the pages folder, while routes work without a slash at the end - for example, /home works, but /home/ does not work.
How to fix it? Alternatively, you can write all routes in server.js , but I think there is an easier way

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