managarten/games/mana-games/apps/web/svelte.config.js
Till JS 29f2c999b5 refactor(mana-games): migrate web app from Astro to SvelteKit
Replace Astro SSG with SvelteKit 2 + Svelte 5 to align with monorepo
standard stack. Adds shared packages (auth, theme, PWA, i18n, local-store),
Tailwind 4, PillNavigation, and local-first data layer for game stats.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 14:44:02 +02:00

21 lines
430 B
JavaScript

import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter({
out: 'build',
}),
prerender: {
handleHttpError: ({ path, message }) => {
if (path === '/favicon.png') return;
throw new Error(message);
},
},
},
};
export default config;