mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +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: {
|
prerender: {
|
||||||
crawlLinks: nuxt.options._generate ? nuxt.options.generate.crawler : false,
|
crawlLinks: nuxt.options._generate ? nuxt.options.generate.crawler : false,
|
||||||
routes: ([] as string[])
|
routes: ([] as string[])
|
||||||
.concat(nuxt.options._generate ? ['/', '/200.html', ...nuxt.options.generate.routes] : [])
|
.concat(nuxt.options.generate.routes)
|
||||||
.concat(nuxt.options.ssr === false ? ['/index.html', '/200.html', '/404.html'] : [])
|
.concat(nuxt.options._generate ? [nuxt.options.ssr ? '/' : '/index.html', '/200.html', '/404.html'] : [])
|
||||||
},
|
},
|
||||||
sourceMap: nuxt.options.sourcemap.server,
|
sourceMap: nuxt.options.sourcemap.server,
|
||||||
externals: {
|
externals: {
|
||||||
|
Loading…
Reference in New Issue
Block a user