From f628026b9e33268fa504af6abe7fb48ed0a21e17 Mon Sep 17 00:00:00 2001 From: Till JS Date: Sat, 28 Mar 2026 16:03:19 +0100 Subject: [PATCH] fix(build): add handleHttpError for missing favicon.png in 4 apps Clock, Context, Chat, and Planta prerender failed because /offline references /favicon.png which doesn't exist. Added handleHttpError to svelte.config.js to ignore this during prerender. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/chat/apps/web/svelte.config.js | 6 ++++++ apps/clock/apps/web/svelte.config.js | 6 ++++++ apps/context/apps/web/svelte.config.js | 6 ++++++ apps/planta/apps/web/svelte.config.js | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/apps/chat/apps/web/svelte.config.js b/apps/chat/apps/web/svelte.config.js index 4ed1e3b74..f290ef5a6 100644 --- a/apps/chat/apps/web/svelte.config.js +++ b/apps/chat/apps/web/svelte.config.js @@ -9,6 +9,12 @@ const config = { adapter: adapter({ out: 'build', }), + prerender: { + handleHttpError: ({ path, message }) => { + if (path === '/favicon.png') return; + throw new Error(message); + }, + }, }, }; diff --git a/apps/clock/apps/web/svelte.config.js b/apps/clock/apps/web/svelte.config.js index 4ed1e3b74..f290ef5a6 100644 --- a/apps/clock/apps/web/svelte.config.js +++ b/apps/clock/apps/web/svelte.config.js @@ -9,6 +9,12 @@ const config = { adapter: adapter({ out: 'build', }), + prerender: { + handleHttpError: ({ path, message }) => { + if (path === '/favicon.png') return; + throw new Error(message); + }, + }, }, }; diff --git a/apps/context/apps/web/svelte.config.js b/apps/context/apps/web/svelte.config.js index 4ed1e3b74..f290ef5a6 100644 --- a/apps/context/apps/web/svelte.config.js +++ b/apps/context/apps/web/svelte.config.js @@ -9,6 +9,12 @@ const config = { adapter: adapter({ out: 'build', }), + prerender: { + handleHttpError: ({ path, message }) => { + if (path === '/favicon.png') return; + throw new Error(message); + }, + }, }, }; diff --git a/apps/planta/apps/web/svelte.config.js b/apps/planta/apps/web/svelte.config.js index c8b303bb6..82f308801 100644 --- a/apps/planta/apps/web/svelte.config.js +++ b/apps/planta/apps/web/svelte.config.js @@ -6,6 +6,12 @@ const config = { preprocess: vitePreprocess(), kit: { adapter: adapter(), + prerender: { + handleHttpError: ({ path, message }) => { + if (path === '/favicon.png') return; + throw new Error(message); + }, + }, }, };