From 1ca4559c25a48e2c2afe360e40876517926977cb Mon Sep 17 00:00:00 2001 From: Mathew Topper Date: Mon, 22 Apr 2024 15:19:34 +0100 Subject: [PATCH] Add 404 page --- static/.htaccess | 1 + svelte.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 static/.htaccess diff --git a/static/.htaccess b/static/.htaccess new file mode 100644 index 0000000..de377bf --- /dev/null +++ b/static/.htaccess @@ -0,0 +1 @@ +ErrorDocument 404 /404.html diff --git a/svelte.config.js b/svelte.config.js index 544110e..093b537 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -84,7 +84,7 @@ const config = { ], kit: { - adapter: adapter(), + adapter: adapter({ fallback: "404.html" }), prerender: { handleMissingId: "warn", entries: [