next-routes icon indicating copy to clipboard operation
next-routes copied to clipboard

catch-all routes do not respect file system routes on server

Open macrozone opened this issue 4 years ago • 0 comments

given this routes.js:

module.exports = nextRoutes() 
  .add("content", "/:path+");

and in pages i have these:

about.js
content.js
index.js

now, if I go to "/about" with a <Link>, it loads about.js, but if i do a reload, i will land on content.js

so the priorities are not equal on server and client.

macrozone avatar Jul 28 '19 11:07 macrozone