2025-03-31 19:03:23 +02:00
|
|
|
import adapter from '@sveltejs/adapter-static';
|
|
|
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
|
|
2025-03-31 23:07:29 +02:00
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
2025-03-31 19:03:23 +02:00
|
|
|
const config = {
|
2025-04-03 22:33:47 +02:00
|
|
|
// preprocess: vitePreprocess(),
|
2025-03-31 23:07:29 +02:00
|
|
|
kit: {
|
2025-04-03 22:33:47 +02:00
|
|
|
adapter: adapter({
|
|
|
|
|
pages: 'build',
|
|
|
|
|
assets: 'build',
|
|
|
|
|
fallback: undefined,
|
|
|
|
|
preprocess: false,
|
|
|
|
|
strict: true,
|
|
|
|
|
}),
|
2025-04-04 20:28:38 +02:00
|
|
|
prerender: {
|
|
|
|
|
handleHttpError: ({ path, referrer, message }) => {
|
|
|
|
|
// ignore deliberate link to shiny 404 page
|
2025-07-13 18:04:36 +02:00
|
|
|
if (path === '/games/swordsnstuff' || path === '/projects/tads/tads1' || path === '/projects/tads/tads2') {
|
2025-04-04 20:28:38 +02:00
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// otherwise fail the build
|
|
|
|
|
throw new Error(message);
|
|
|
|
|
},
|
|
|
|
|
handleMissingId: 'ignore',
|
|
|
|
|
},
|
2025-03-31 23:07:29 +02:00
|
|
|
},
|
2025-03-31 19:03:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default config;
|