Skip to content

Commit 7c7c525

Browse files
authored
fix: prefer nitro.static over _generate (#774)
1 parent 1b72db3 commit 7c7c525

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ export default defineNuxtModule<ModuleOptions>({
160160
}),
161161
])
162162

163-
if (nuxt.options._generate) {
163+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
164+
if (nuxt.options.nitro.static || (nuxt.options as any)._generate /* TODO: remove in future */) {
164165
nuxt.hook('nitro:config', async (config) => {
165166
config.prerender ||= {}
166167
config.prerender.routes ||= []

0 commit comments

Comments
 (0)