mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 00:23:53 +00:00
fix(nuxt): don't prerender index.html with a server (#7831)
This commit is contained in:
parent
63c88056c7
commit
92ff066ab2
@ -56,8 +56,8 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
|
||||
prerender: {
|
||||
crawlLinks: nuxt.options._generate ? nuxt.options.generate.crawler : false,
|
||||
routes: ([] as string[])
|
||||
.concat(nuxt.options._generate ? ['/', '/200.html', ...nuxt.options.generate.routes] : [])
|
||||
.concat(nuxt.options.ssr === false ? ['/index.html', '/200.html', '/404.html'] : [])
|
||||
.concat(nuxt.options.generate.routes)
|
||||
.concat(nuxt.options._generate ? [nuxt.options.ssr ? '/' : '/index.html', '/200.html', '/404.html'] : [])
|
||||
},
|
||||
sourceMap: nuxt.options.sourcemap.server,
|
||||
externals: {
|
||||
|
Loading…
Reference in New Issue
Block a user