From cec4fe8905bd3b4eb4e2b0fb0c9488cfecfba951 Mon Sep 17 00:00:00 2001 From: pleb Date: Thu, 30 Oct 2025 10:26:16 -0700 Subject: [PATCH] Revert prerender hack that ignored 404s --- svelte.config.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/svelte.config.js b/svelte.config.js index 8ab3fe4..03c17f2 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -6,18 +6,7 @@ const config = { // Consult https://svelte.dev/docs/kit/integrations // for more information about preprocessors preprocess: vitePreprocess(), - kit: { - adapter: adapter(), - prerender: { - handleHttpError: ({ status, path }) => { - if (status === 404) { - console.warn(`Skipping prerender of ${path} (expected 404)`); - return; - } - throw new Error(`${status} ${path}`); - } - } - } + kit: { adapter: adapter() } }; export default config;