Skip to content

Commit 6e7fdd5

Browse files
committedSep 12, 2024
fix(githubPages): prerender /robots.txt
1 parent 1c0b348 commit 6e7fdd5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

Diff for: ‎src/kit.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,8 @@ export async function getNuxtModuleOptions(module: string | NuxtModule, nuxt: Nu
9595
}
9696

9797
export function isNuxtGenerate(nuxt: Nuxt = useNuxt()) {
98-
return nuxt.options._generate || nuxt.options.nitro.static || nuxt.options.nitro.preset === 'static'
98+
return nuxt.options._generate || [
99+
'static',
100+
'github-pages',
101+
].includes(resolveNitroPreset(nuxt.options.nitro))
99102
}

0 commit comments

Comments
 (0)
Please sign in to comment.