added missingPaths const to config
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
import adapter from '@sveltejs/adapter-static';
|
import adapter from '@sveltejs/adapter-static';
|
||||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||||
|
|
||||||
|
const missingPaths = [
|
||||||
|
"/games/swordsnstuff",
|
||||||
|
"/games/magician",
|
||||||
|
"/projects/tads/tads1",
|
||||||
|
"/projects/tads/tads2"
|
||||||
|
]
|
||||||
|
|
||||||
/** @type {import('@sveltejs/kit').Config} */
|
/** @type {import('@sveltejs/kit').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
// preprocess: vitePreprocess(),
|
// preprocess: vitePreprocess(),
|
||||||
@@ -15,7 +22,7 @@ const config = {
|
|||||||
prerender: {
|
prerender: {
|
||||||
handleHttpError: ({ path, referrer, message }) => {
|
handleHttpError: ({ path, referrer, message }) => {
|
||||||
// ignore deliberate link to shiny 404 page
|
// ignore deliberate link to shiny 404 page
|
||||||
if (path === '/games/swordsnstuff' || path === '/projects/tads/tads1' || path === '/projects/tads/tads2') {
|
if (missingPaths.includes(path)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user