mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-23 17:10:07 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
071a11fbca
commit
b84924ccf8
@ -254,9 +254,9 @@ export default defineNuxtConfig({
|
|||||||
[Unhead](https://unhead.unjs.io/), used to generate `<head>` tags, has been updated to version 2. While mostly compatible it includes several breaking changes
|
[Unhead](https://unhead.unjs.io/), used to generate `<head>` tags, has been updated to version 2. While mostly compatible it includes several breaking changes
|
||||||
for lower-level APIs.
|
for lower-level APIs.
|
||||||
|
|
||||||
- Removed props: `vmid`, `hid`, `children`, `body`.
|
* Removed props: `vmid`, `hid`, `children`, `body`.
|
||||||
- Promise input no longer supported.
|
* Promise input no longer supported.
|
||||||
- Tags are now sorted using Capo.js by default.
|
* Tags are now sorted using Capo.js by default.
|
||||||
|
|
||||||
##### Migration Steps
|
##### Migration Steps
|
||||||
|
|
||||||
@ -264,7 +264,7 @@ The above changes should have minimal impact on your app.
|
|||||||
|
|
||||||
If you have issues you should verify:
|
If you have issues you should verify:
|
||||||
|
|
||||||
- You're not using any of the removed props.
|
* You're not using any of the removed props.
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
useHead({
|
useHead({
|
||||||
@ -277,7 +277,7 @@ useHead({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
- If you're using [Template Params](https://unhead.unjs.io/usage/guides/template-params) or [Alias Tag Sorting](https://unhead.unjs.io/usage/guides/sorting#sort-with-before-and-after), you will need to explicitly opt in to these features now.
|
* If you're using [Template Params](https://unhead.unjs.io/usage/guides/template-params) or [Alias Tag Sorting](https://unhead.unjs.io/usage/guides/sorting#sort-with-before-and-after), you will need to explicitly opt in to these features now.
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { TemplateParamsPlugin, AliasSortingPlugin } from '@unhead/vue/plugins'
|
import { TemplateParamsPlugin, AliasSortingPlugin } from '@unhead/vue/plugins'
|
||||||
|
Loading…
Reference in New Issue
Block a user