Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question