We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nitro.static
_generate
1 parent 94aee1c commit 742b663Copy full SHA for 742b663
src/module.ts
@@ -26,7 +26,7 @@ export default defineNuxtModule<ModuleOptions>({
26
defaults: {},
27
async setup(options: ModuleOptions, nuxt: Nuxt) {
28
// Cannot be used with `nuxt generate`
29
- if (nuxt.options._generate) {
+ if (nuxt.options.nitro.static || (nuxt.options as any)._generate /* TODO: remove in future */) {
30
log.error('NuxtHub is not compatible with `nuxt generate` as it needs a server to run.')
31
log.info('To pre-render all pages: `https://hub.nuxt.com/docs/recipes/pre-rendering#pre-render-all-pages`')
32
return process.exit(1)
0 commit comments