added missingPaths const to config

This commit is contained in:
2025-07-14 13:14:40 +02:00
parent ea4592b4c2
commit 777386a149

View File

@@ -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;
}