I'm rewriting a complete site that worked with case insensative routes. That is, someone can type:
https://www.siliconvalley-codecamp.com/Presenter/2019/Douglas-Crockford-1124
or
https://www.siliconvalley-codecamp.com/presenter/2019/douglas-crockford-1124
and they both resolve to the same page. In NextJS 11, I currently am using a file in my pages folder as follows to resolve this:
/pages/presenter[[..slug]].tsx
which means that the first URL I mention above will not work, but the second one will. I'm using ISG also so that even the slug does not handle routing correctly.
Currently, the site is built here and you can see the behavior problem.
working:
https://svcc.mobi/presenter/2019/douglas-crockford-1124
Not working:
https://svcc.mobi/Presenter/2019/Douglas-Crockford-1124
I've looked at the docs here: https://nextjs.org/docs/api-reference/next.config.js/rewrites but don't see a way to handle the general case of a route with a slug.