import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

/** @type {import('@sveltejs/kit').Config} */
const config = {
    preprocess: vitePreprocess(),
    kit: {
        adapter: adapter({
            pages: 'dist',
            assets: 'dist',
            fallback: undefined,
            precompress: false,
            strict: true,
        }),
        prerender: {
            // Allow placeholder links to future pages (e.g. /seeded-cloud) without failing the build
            handleHttpError: 'warn',
        },
    },
};

export default config;
