From 0500fb7a0ac9c884ecd6346c2b524867e4ab547e Mon Sep 17 00:00:00 2001 From: Till JS Date: Tue, 31 Mar 2026 18:11:53 +0200 Subject: [PATCH] fix(prerender): suppress favicon.png 404 during prerender in skilltree and nutriphi Co-Authored-By: Claude Opus 4.6 --- apps/nutriphi/apps/web/svelte.config.js | 6 ++++++ apps/skilltree/apps/web/svelte.config.js | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/apps/nutriphi/apps/web/svelte.config.js b/apps/nutriphi/apps/web/svelte.config.js index a7a917e4c..ba4d67816 100644 --- a/apps/nutriphi/apps/web/svelte.config.js +++ b/apps/nutriphi/apps/web/svelte.config.js @@ -8,6 +8,12 @@ const config = { adapter: adapter({ out: 'build', }), + prerender: { + handleHttpError: ({ path, message }) => { + if (path === '/favicon.png') return; + throw new Error(message); + }, + }, }, }; diff --git a/apps/skilltree/apps/web/svelte.config.js b/apps/skilltree/apps/web/svelte.config.js index a7a917e4c..ba4d67816 100644 --- a/apps/skilltree/apps/web/svelte.config.js +++ b/apps/skilltree/apps/web/svelte.config.js @@ -8,6 +8,12 @@ const config = { adapter: adapter({ out: 'build', }), + prerender: { + handleHttpError: ({ path, message }) => { + if (path === '/favicon.png') return; + throw new Error(message); + }, + }, }, };