mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-20 07:30:57 +00:00
docs: add a note about compatibilityVersion
feature flag (#30274)
This commit is contained in:
parent
73761dade5
commit
b66858477b
@ -56,6 +56,10 @@ First, upgrade Nuxt to the [latest release](https://github.com/nuxt/nuxt/release
|
||||
|
||||
Then you can set your `compatibilityVersion` to match Nuxt 4 behavior:
|
||||
|
||||
::note
|
||||
For now, you need to define the compatibility version in each layer that opts into Nuxt 4 behavior. This will not be required after Nuxt 4 is released.
|
||||
::
|
||||
|
||||
```ts twoslash [nuxt.config.ts]
|
||||
export default defineNuxtConfig({
|
||||
future: {
|
||||
|
@ -40,7 +40,7 @@ There is also a `future` namespace for early opting-in to new features that will
|
||||
### compatibilityVersion
|
||||
|
||||
::important
|
||||
This configuration option is available in Nuxt v3.12+.
|
||||
This configuration option is available in Nuxt v3.12+. Please note, that for now, you need to define the compatibility version in each layer that opts into Nuxt 4 behavior. This will not be required after Nuxt 4 is released.
|
||||
::
|
||||
|
||||
This enables early access to Nuxt features or flags.
|
||||
|
Loading…
Reference in New Issue
Block a user