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

Commit ce38dcb

Browse files
authored
fix(nuxt3): always generate / route (#4421)
1 parent 0b8eeaf commit ce38dcb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/nuxt3/src/core/nitro.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export async function initNitro (nuxt: Nuxt) {
5252
prerender: {
5353
crawlLinks: nuxt.options._generate ? nuxt.options.generate.crawler : false,
5454
routes: []
55-
.concat(nuxt.options.generate.routes)
55+
.concat(nuxt.options._generate ? ['/', ...nuxt.options.generate.routes] : [])
5656
.concat(nuxt.options.ssr === false ? ['/', '/200', '/404'] : [])
5757
},
5858
externals: {

0 commit comments

Comments
 (0)