Best way to restrict i18n route params?
Hey, I'm exploring to migrate from Next.js :ā )
How do I restrict my
Also
How do I restrict my
$lang route param to only allow valid values of the languages I support? Right now I tried something like this but I would have to maintain a list of reserved paths.Also
favicon.ico etc trigger this param which makes this error prone and annoying to maintain