Revert prerender hack that ignored 404s

This commit is contained in:
pleb 2025-10-30 10:26:16 -07:00
parent f28b963ba3
commit cec4fe8905

View File

@ -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;