From ef7e1501bcff8a1fb16dc309b8c0a215018e4e2e Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 2 Aug 2022 18:34:43 +0200 Subject: [PATCH] fix(nuxt): properly generate `200.html` and `404.html` fallback files --- packages/nuxt/src/core/nitro.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/core/nitro.ts b/packages/nuxt/src/core/nitro.ts index c938e1ccff0..3a7b3b24416 100644 --- a/packages/nuxt/src/core/nitro.ts +++ b/packages/nuxt/src/core/nitro.ts @@ -51,7 +51,7 @@ export async function initNitro (nuxt: Nuxt) { crawlLinks: nuxt.options._generate ? nuxt.options.generate.crawler : false, routes: [] .concat(nuxt.options._generate ? ['/', ...nuxt.options.generate.routes] : []) - .concat(nuxt.options.ssr === false ? ['/', '/200', '/404'] : []) + .concat(nuxt.options.ssr === false ? ['/', '/200.html', '/404.html'] : []) }, sourcemap: nuxt.options.sourcemap, externals: {