Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(nuxt): don't prerender index.html with a server #7831

Merged
merged 6 commits into from Oct 3, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/nuxt/src/core/nitro.ts
Expand Up @@ -57,7 +57,8 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
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.ssr === false ? ['/200.html', '/404.html'] : [])
.concat(nuxt.options.ssr === false && nuxt.options._generate ? ['/index.html'] : [])
},
sourceMap: nuxt.options.sourcemap.server,
externals: {
Expand Down