Skip to content

Commit c4df59d

Browse files
committed
fix: prefer nitro.static over _generate
1 parent 54555fa commit c4df59d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function configure(ctx: HttpClientHintsContext, nuxt: Nuxt) {
5151
}
5252
}
5353

54-
const clientOnly = nuxt.options._generate || !nuxt.options.ssr
54+
const clientOnly = nuxt.options.nitro.static || (nuxt.options as any)._generate /* TODO: remove in future */ || !nuxt.options.ssr
5555

5656
// we register the client detector only if needed and not in SSR mode
5757
if ((options.detectBrowser || options.detectOS || resolvedOptions.userAgent.length) && clientOnly) {

0 commit comments

Comments
 (0)