mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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,
|
||||
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,
|
||||
externals: {
|
||||
|
Loading…
Reference in New Issue
Block a user