I have a routeRules defined in my nuxt.config.ts like this:
routeRules: { '/uk/some-random-slug': { swr: true }, },
I have a server/route like this:
server/routes/[locale]/verify-email.ts
Now accessing my server/route at:
uk/verify-email does not work
de/verify-email works fine
Even though my routeRule is a named route it still conflicts with my server route causing it to return the incorrect data.
If you disable caching it works again.
Environment
Build Modules: -
Reproduction
https://stackblitz.com/edit/nuxt-starter-ftdurl
Describe the bug
I have a routeRules defined in my nuxt.config.ts like this:
routeRules: { '/uk/some-random-slug': { swr: true }, },
I have a server/route like this:
server/routes/[locale]/verify-email.ts
Now accessing my server/route at:
uk/verify-email
does not workde/verify-email
works fineEven though my routeRule is a named route it still conflicts with my server route causing it to return the incorrect data. If you disable caching it works again.
Additional context
No response
Logs
No response