From 777386a149e6eeac3aa48c0d0a34cd4ada128b8b Mon Sep 17 00:00:00 2001 From: denizk0461 Date: Mon, 14 Jul 2025 13:14:40 +0200 Subject: [PATCH] added missingPaths const to config --- svelte.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; }