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) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-28 16:03:19 +01:00
parent 8ccf8ff818
commit f628026b9e
4 changed files with 24 additions and 0 deletions

View file

@ -9,6 +9,12 @@ const config = {
adapter: adapter({
out: 'build',
}),
prerender: {
handleHttpError: ({ path, message }) => {
if (path === '/favicon.png') return;
throw new Error(message);
},
},
},
};

View file

@ -9,6 +9,12 @@ const config = {
adapter: adapter({
out: 'build',
}),
prerender: {
handleHttpError: ({ path, message }) => {
if (path === '/favicon.png') return;
throw new Error(message);
},
},
},
};

View file

@ -9,6 +9,12 @@ const config = {
adapter: adapter({
out: 'build',
}),
prerender: {
handleHttpError: ({ path, message }) => {
if (path === '/favicon.png') return;
throw new Error(message);
},
},
},
};

View file

@ -6,6 +6,12 @@ const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter(),
prerender: {
handleHttpError: ({ path, message }) => {
if (path === '/favicon.png') return;
throw new Error(message);
},
},
},
};