switched to node adapter

This commit is contained in:
2025-08-16 10:24:06 +02:00
parent 5b46fd8f13
commit 2bf66f485e
3 changed files with 684 additions and 317 deletions

View File

@@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-static';
import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
const missingPaths = [
@@ -20,15 +20,6 @@ const config = {
strict: true,
}),
prerender: {
handleHttpError: ({ path, referrer, message }) => {
// ignore deliberate link to shiny 404 page
if (missingPaths.includes(path)) {
return;
}
// otherwise fail the build
throw new Error(message);
},
handleMissingId: 'ignore',
},
},