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({
			// Build output goes to ../frontend (parent backend's static folder)
			pages: '../frontend',
			assets: '../frontend',
			fallback: '404.html',
			precompress: false,
			strict: true
		}),
		paths: {
			// No base path needed - served from root
			base: ''
		}
	}
};

export default config;
