Closed MickL closed 3 months ago
This is expected behavior, I suppose this should be documented more clearly.
The default value for customRoutes
is 'pages'
, so by commenting customRoutes: 'config'
it will switch back to its default value, options docs and custom routes docs for reference.
Thanks for the quick response! In this case I would suggest to remove the word 'some' and add the info that it is either one or the other :)
Btw. I added a question in the discussions if you might have time.
I agree the wording can be more definitive, the wording is a side effect of having contributors from across globe 💪 Feel free to open a PR if you find anything that needs fixing.
Environment
Reproduction
https://stackblitz.com/edit/github-o4bb8f?file=nuxt.config.ts
customRoutes: 'config',
de/kontakt
works but notde/ueber-uns
de/ueber-uns
works but notde/kontakt
Describe the bug
customRoutes: 'config'
innuxt.config.ts
Custom Route Paths can be set innuxt.config.ts
but usingdefineI18nRoute()
is ignoredcustomRoutes: 'config'
fromnuxt.config.ts
defineI18nRoute()
is works but Custom Route Paths innuxt.config.ts
are ignoredAdditional context
Mixed custom route paths in
nuxt.config.ts
anddefineI18nRoute()
is not possible. It must be either all in nuxt.config.ts or all withdefineI18nRoute
.I dont know if this is supposed to work this way because the docs say:
Logs
No response