From ce38dcba1cd2c5b03781ddf4995e9c783e3924a0 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Tue, 19 Apr 2022 10:17:41 +0200 Subject: [PATCH] fix(nuxt3): always generate `/` route (#4421) --- packages/nuxt3/src/core/nitro.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt3/src/core/nitro.ts b/packages/nuxt3/src/core/nitro.ts index 0fc0da62a8..f12300df2d 100644 --- a/packages/nuxt3/src/core/nitro.ts +++ b/packages/nuxt3/src/core/nitro.ts @@ -52,7 +52,7 @@ export async function initNitro (nuxt: Nuxt) { prerender: { crawlLinks: nuxt.options._generate ? nuxt.options.generate.crawler : false, routes: [] - .concat(nuxt.options.generate.routes) + .concat(nuxt.options._generate ? ['/', ...nuxt.options.generate.routes] : []) .concat(nuxt.options.ssr === false ? ['/', '/200', '/404'] : []) }, externals: {