mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(nuxt3): always generate /
route (#4421)
This commit is contained in:
parent
0b8eeaf40f
commit
ce38dcba1c
@ -52,7 +52,7 @@ export async function initNitro (nuxt: Nuxt) {
|
||||
prerender: {
|
||||
crawlLinks: nuxt.options._generate ? nuxt.options.generate.crawler : false,
|
||||
routes: []
|
||||
.concat(nuxt.options.generate.routes)
|
||||
.concat(nuxt.options._generate ? ['/', ...nuxt.options.generate.routes] : [])
|
||||
.concat(nuxt.options.ssr === false ? ['/', '/200', '/404'] : [])
|
||||
},
|
||||
externals: {
|
||||
|
Loading…
Reference in New Issue
Block a user