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'
45import { createResolver , resolvePath } from '@nuxt/kit'
56import { hash } from 'ohash'
67import type { InputProvider , ImageModuleProvider , ProviderSetup } from './types'
@@ -38,10 +39,11 @@ export const providerSetup: Record<string, ProviderSetup> = {
3839 // https://vercel.com/docs/more/adding-your-framework#images
3940 vercel ( _providerOptions , moduleOptions , nuxt : Nuxt ) {
4041 nuxt . options . nitro = defu ( nuxt . options . nitro , {
41- vercel : {
42+ vercel : < NitroOptions [ 'vercel' ] > {
4243 config : {
43- image : {
44+ images : {
4445 domains : moduleOptions . domains ,
46+ minimumCacheTTL : 60 * 5 ,
4547 sizes : Array . from ( new Set ( Object . values ( moduleOptions . screens || { } ) ) )
4648 }
4749 }
You can’t perform that action at this time.
0 commit comments