mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxt): skip prerendering all pages in hash mode (#24517)
Co-authored-by: Diorcet Yann <diorcet.yann@gmail.com>
This commit is contained in:
parent
09161d005d
commit
7c6b6771ab
@ -222,7 +222,7 @@ export default defineNuxtModule({
|
|||||||
})
|
})
|
||||||
|
|
||||||
nuxt.hook('nitro:init', (nitro) => {
|
nuxt.hook('nitro:init', (nitro) => {
|
||||||
if (nuxt.options.dev || !nitro.options.static) { return }
|
if (nuxt.options.dev || !nitro.options.static || nuxt.options.router.options.hashMode) { return }
|
||||||
// Prerender all non-dynamic page routes when generating app
|
// Prerender all non-dynamic page routes when generating app
|
||||||
const prerenderRoutes = new Set<string>()
|
const prerenderRoutes = new Set<string>()
|
||||||
nuxt.hook('pages:extend', (pages) => {
|
nuxt.hook('pages:extend', (pages) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user