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 GitHub
parent 77b82c9d02
commit 8ddf54c033
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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"}