Revert prerender hack that ignored 404s
This commit is contained in:
parent
f28b963ba3
commit
cec4fe8905
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user