We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
nitro.static
_generate
1 parent 7020292 commit 272e43aCopy full SHA for 272e43a
src/module.ts
@@ -57,7 +57,8 @@ export default defineNuxtModule<ModuleOptions>({
57
58
// Use `server` provider when SSR is disabled or generate mode
59
if (!options.provider) {
60
- options.provider = (!nuxt.options.ssr || nuxt.options._generate)
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
61
+ options.provider = (!nuxt.options.ssr || nuxt.options.nitro.static || (nuxt.options as any)._generate)
62
? 'iconify'
63
: 'server'
64
}
0 commit comments