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
|
// Consult https://svelte.dev/docs/kit/integrations
|
||||||
// for more information about preprocessors
|
// for more information about preprocessors
|
||||||
preprocess: vitePreprocess(),
|
preprocess: vitePreprocess(),
|
||||||
kit: {
|
kit: { adapter: adapter() }
|
||||||
adapter: adapter(),
|
|
||||||
prerender: {
|
|
||||||
handleHttpError: ({ status, path }) => {
|
|
||||||
if (status === 404) {
|
|
||||||
console.warn(`Skipping prerender of ${path} (expected 404)`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
throw new Error(`${status} ${path}`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user