fix(prerender): suppress favicon.png 404 during prerender in skilltree and nutriphi

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-31 18:11:53 +02:00
parent f4713ec831
commit 0500fb7a0a
2 changed files with 12 additions and 0 deletions

View file

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

View file

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