mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(nuxt): generate 200.html
and 404.html
spa fallback files (#6308)
This commit is contained in:
parent
4379e9d922
commit
000d81d760
@ -51,7 +51,7 @@ export async function initNitro (nuxt: Nuxt) {
|
|||||||
crawlLinks: nuxt.options._generate ? nuxt.options.generate.crawler : false,
|
crawlLinks: nuxt.options._generate ? nuxt.options.generate.crawler : false,
|
||||||
routes: []
|
routes: []
|
||||||
.concat(nuxt.options._generate ? ['/', ...nuxt.options.generate.routes] : [])
|
.concat(nuxt.options._generate ? ['/', ...nuxt.options.generate.routes] : [])
|
||||||
.concat(nuxt.options.ssr === false ? ['/', '/200', '/404'] : [])
|
.concat(nuxt.options.ssr === false ? ['/', '/200.html', '/404.html'] : [])
|
||||||
},
|
},
|
||||||
sourcemap: nuxt.options.sourcemap,
|
sourcemap: nuxt.options.sourcemap,
|
||||||
externals: {
|
externals: {
|
||||||
|
Loading…
Reference in New Issue
Block a user