docs: add explanation with augmented meta for new routes (#18901)

This commit is contained in:
Daniel Roe 2023-02-08 22:03:06 -08:00 committed by GitHub
parent 9845467421
commit 0b2bce406b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -369,6 +369,10 @@ export default <RouterConfig> {
}
```
::alert
Nuxt will not augment any new routes you return from the `routes` function with metadata defined in `definePageMeta` of the component you provide. If you want that to happen, you should probably use the `pages:extend` hook which is [called at build-time](/docs/api/advanced/hooks#nuxt-hooks-build-time).
::
#### Custom History (advanced)
You can optionally override history mode using a function that accepts base url and returns history mode.