next-routes
next-routes copied to clipboard
catch-all routes do not respect file system routes on server
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.