docs: add missing imports for nitro examples (#25003)

This commit is contained in:
Mateusz Kulpa 2024-01-02 13:35:44 +01:00 committed by GitHub
parent 160208009e
commit 772264ae40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -382,7 +382,7 @@ A directory or an array of directories to register to be scanned by Nitro
### Examples ### Examples
```ts ```ts
import { defineNuxtModule, addServerImportsDir } from '@nuxt/kit' import { defineNuxtModule, createResolver, addServerImportsDir } from '@nuxt/kit'
export default defineNuxtModule({ export default defineNuxtModule({
meta: { meta: {
@ -420,7 +420,7 @@ A directory or an array of directories to register to be scanned for by Nitro as
### Examples ### Examples
```ts ```ts
import { defineNuxtModule, addServerScanDir } from '@nuxt/kit' import { defineNuxtModule, createResolver, addServerScanDir } from '@nuxt/kit'
export default defineNuxtModule({ export default defineNuxtModule({
meta: { meta: {
name: 'my-module', name: 'my-module',