File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { normalize } from 'pathe'
22import { defu } from 'defu'
33import type { Nuxt } from '@nuxt/schema'
4- import type { NitroOptions } from 'nitropack'
4+ import type { NitroConfig } from 'nitropack'
55import { createResolver , resolvePath } from '@nuxt/kit'
66import { hash } from 'ohash'
77import 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}
You can’t perform that action at this time.
0 commit comments