docs: add tips on how to override layers aliases (#30970)

This commit is contained in:
Horu 2025-02-13 01:21:44 +07:00 committed by Daniel Roe
parent 05b020bedb
commit b71c6f1bf3
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -53,6 +53,26 @@ export default defineNuxtConfig({
})
```
::tip
You can override a layer's alias by specifying it in the options next to the layer source.
```ts [nuxt.config.ts]
export default defineNuxtConfig({
extends: [
[
'github:my-themes/awesome',
{
meta: {
name: 'my-awesome-theme',
},
},
],
]
})
```
::
Nuxt uses [unjs/c12](https://c12.unjs.io) and [unjs/giget](https://giget.unjs.io) for extending remote layers. Check the documentation for more information and all available options.
::read-more{to="/docs/guide/going-further/layers"}