Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto commit for changes in svelte.config.js
Changes in svelte.config.js:\n\ndiff --git a/svelte.config.js b/svelte.config.js index 0716cbe..646b929 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -6,6 +6,17 @@ const config = { adapter: adapter(), paths: { base: "/tools" + }, + prerender: { + handleHttpError: ({ path, referrer, message }) => { + // Ignore deliberate link to shiny 404 page + if (path === '/not-found' && referrer === '/tools/error') { + return; + } + + // Otherwise fail the build + throw new Error(message); + } } }, preprocess: vitePreprocess() Signed-off-by: Memet Zx <zxce3@gnuweeb.org>
- Loading branch information