From 94f547c1b5bd2181614912ca83f86b35edae6057 Mon Sep 17 00:00:00 2001 From: Ax333l Date: Sun, 30 Oct 2022 22:08:54 +0100 Subject: [PATCH] fix: production 404 page vercel moment --- svelte.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/svelte.config.js b/svelte.config.js index 38b8cab..55305a6 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -8,8 +8,11 @@ const config = { preprocess: preprocess(), kit: { + // adapter-static has vercel detection, but that does not let you set a custom 404 page easily. + // Instead, we have to disable it and set trailing slash to always. adapter: adapter({ - pages: 'public', + pages: "public", + fallback: "404.html" }), trailingSlash: 'always'