diff --git a/svelte.config.js b/svelte.config.js index a32f411..2a48b84 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,6 +1,13 @@ import adapter from '@sveltejs/adapter-static'; import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; +const missingPaths = [ + "/games/swordsnstuff", + "/games/magician", + "/projects/tads/tads1", + "/projects/tads/tads2" +] + /** @type {import('@sveltejs/kit').Config} */ const config = { // preprocess: vitePreprocess(), @@ -15,7 +22,7 @@ const config = { prerender: { handleHttpError: ({ path, referrer, message }) => { // ignore deliberate link to shiny 404 page - if (path === '/games/swordsnstuff' || path === '/projects/tads/tads1' || path === '/projects/tads/tads2') { + if (missingPaths.includes(path)) { return; }