Skip to content

Commit 2679d60

Browse files
committed
fix: type vercel nitro config correctly
1 parent ad5757d commit 2679d60

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/provider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { normalize } from 'pathe'
22
import { defu } from 'defu'
33
import type { Nuxt } from '@nuxt/schema'
4-
import type { NitroOptions } from 'nitropack'
4+
import type { NitroConfig } from 'nitropack'
55
import { createResolver, resolvePath } from '@nuxt/kit'
66
import { hash } from 'ohash'
77
import type { InputProvider, ImageModuleProvider, ProviderSetup } from './types'
@@ -41,15 +41,15 @@ export const providerSetup: Record<string, ProviderSetup> = {
4141
// https://vercel.com/docs/more/adding-your-framework#images
4242
vercel (_providerOptions, moduleOptions, nuxt: Nuxt) {
4343
nuxt.options.nitro = defu(nuxt.options.nitro, {
44-
vercel: <NitroOptions['vercel']>{
44+
vercel: {
4545
config: {
4646
images: {
4747
domains: moduleOptions.domains,
4848
minimumCacheTTL: 60 * 5,
4949
sizes: Array.from(new Set(Object.values(moduleOptions.screens || {})))
5050
}
5151
}
52-
}
52+
} satisfies NitroConfig['vercel']
5353
})
5454
}
5555
}

0 commit comments

Comments
 (0)