Skip to content

Commit

Permalink
perf: 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Mar 5, 2024
1 parent 585ca9f commit 0a2cf72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/_404Page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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` };
},
};
};

0 comments on commit 0a2cf72

Please sign in to comment.