mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 00:52:01 +00:00
docs: clarify that bridge.typescript
option must be set. (#23503)
This commit is contained in:
parent
ad2a900fda
commit
46114393f7
@ -5,6 +5,19 @@
|
|||||||
- Remove `@nuxt/typescript-build`: Bridge enables same functionality
|
- Remove `@nuxt/typescript-build`: Bridge enables same functionality
|
||||||
- Remove `@nuxt/typescript-runtime` and `nuxt-ts`: Nuxt 2 has built-in runtime support
|
- Remove `@nuxt/typescript-runtime` and `nuxt-ts`: Nuxt 2 has built-in runtime support
|
||||||
|
|
||||||
|
### Set `bridge.typescript`
|
||||||
|
|
||||||
|
```ts
|
||||||
|
import { defineNuxtConfig } from '@nuxt/bridge'
|
||||||
|
|
||||||
|
export default defineNuxtConfig({
|
||||||
|
bridge: {
|
||||||
|
typescript: true,
|
||||||
|
nitro: false // If migration to Nitro is complete, set to true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
## Update `tsconfig.json`
|
## Update `tsconfig.json`
|
||||||
|
|
||||||
If you are using TypeScript, you can edit your `tsconfig.json` to benefit from auto-generated Nuxt types:
|
If you are using TypeScript, you can edit your `tsconfig.json` to benefit from auto-generated Nuxt types:
|
||||||
|
@ -43,7 +43,8 @@ import { defineNuxtConfig } from '@nuxt/bridge'
|
|||||||
|
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
bridge: {
|
bridge: {
|
||||||
capi: true
|
capi: true,
|
||||||
|
nitro: false // If migration to Nitro is complete, set to true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
@ -12,7 +12,8 @@ If you need to use the Options API, there is a `head()` method you can use when
|
|||||||
import { defineNuxtConfig } from '@nuxt/bridge'
|
import { defineNuxtConfig } from '@nuxt/bridge'
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
bridge: {
|
bridge: {
|
||||||
meta: true
|
meta: true,
|
||||||
|
nitro: false // If migration to Nitro is complete, set to true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user