added missingPaths const to config
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user