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 @@ -63,7 +63,7 @@ export function configurePWAOptions(
6363
6464 // handle payload extraction
6565 if ( nuxt . options . experimental . payloadExtraction ) {
66- const enableGlobPatterns = nuxt . options . _generate
66+ const enableGlobPatterns = nuxt . options . nitro . static || ( nuxt . options as any ) . _generate /* TODO: remove in future */
6767 || (
6868 ! ! nitroConfig . prerender ?. routes ?. length
6969 || Object . values ( nitroConfig . routeRules ?? { } ) . some ( r => r . prerender )
Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ export const periodicSyncForUpdates = ${typeof client.periodicSyncForUpdates ===
325325 )
326326 } )
327327 } )
328- if ( nuxt . options . _generate ) {
328+ if ( nuxt . options . nitro . static || ( nuxt . options as any ) . _generate /* TODO: remove in future */ ) {
329329 nuxt . hook ( 'close' , async ( ) => {
330330 await regeneratePWA (
331331 options . outDir ! ,
You can’t perform that action at this time.
0 commit comments