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` }; }, }; };