File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ export function resolveNitroPreset(nitroConfig?: NitroConfig): string {
113113 if ( nuxt . options . dev )
114114 return 'nitro-dev'
115115 // check for prerendering
116- if ( nuxt . options . _generate )
116+ if ( ( nuxt . options as any ) _generate /* TODO: remove in future major */ || nuxt . options . nitro . static )
117117 return 'nitro-prerender'
118118 let preset
119119 if ( nitroConfig && nitroConfig ?. preset )
Original file line number Diff line number Diff line change @@ -61,5 +61,5 @@ export {}
6161}
6262
6363export function isNuxtGenerate ( nuxt : Nuxt = useNuxt ( ) ) {
64- return nuxt . options . _generate || nuxt . options . nitro . static || nuxt . options . nitro . preset === 'static'
64+ return ( nuxt . options as any ) _generate /* TODO: remove in future major */ || nuxt . options . nitro . static || nuxt . options . nitro . preset === 'static'
6565}
You can’t perform that action at this time.
0 commit comments