Next-routes: Every file in pages is still a route, how to disable them and only allow routes defined through next-routes to exist?

Created on 9 Jun 2017  路  3Comments  路  Source: fridays/next-routes

I have defined the routes, all of them with parameters. But still, I can access them without parameters. Next-routes is not overriding the routes defined by next. How do I fix this?

Thanks a lot!

Most helpful comment

If you define the routes without parameters, they will override the original file based routes.

It should soon be possible to disable file based routes completely: https://github.com/zeit/next.js/pull/914

All 3 comments

If you define the routes without parameters, they will override the original file based routes.

It should soon be possible to disable file based routes completely: https://github.com/zeit/next.js/pull/914

Cool, thanks a lot. :)

following the merge closely. and will help when it is in a stable release of next.js

Was this page helpful?
0 / 5 - 0 ratings

Related issues

khankuan picture khankuan  路  7Comments

joncursi picture joncursi  路  3Comments

apapacy picture apapacy  路  4Comments

ccuilla picture ccuilla  路  6Comments

JiiB picture JiiB  路  4Comments