From 0a2cf72f3d08c89e43d42c99516a57cd3d8aa618 Mon Sep 17 00:00:00 2001 From: lisonge Date: Tue, 5 Mar 2024 16:45:29 +0800 Subject: [PATCH] perf: 404 page --- plugins/_404Page.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/_404Page.ts b/plugins/_404Page.ts index eb997bd..40d8f72 100644 --- a/plugins/_404Page.ts +++ b/plugins/_404Page.ts @@ -5,7 +5,8 @@ export const _404Page = (): Plugin => { enforce: 'post', apply: 'build', generateBundle(_, bundle) { - bundle['404.html'] = { ...bundle[`index.html`], fileName: `404.html` }; + // https://developers.cloudflare.com/pages/configuration/serving-pages/#single-page-app-spa-rendering + // bundle['404.html'] = { ...bundle[`index.html`], fileName: `404.html` }; }, }; };