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' }), alias: { $ui: 'src/lib/ui', '$ui/*': 'src/lib/ui/*' }, // The authentication hook requires exact same-origin browser mutations, // including multipart uploads. Machine routes use their own credentials // and cannot be subjected to the browser-origin rule. Set ORIGIN to the // externally visible HTTPS URL when running behind a reverse proxy. csrf: { checkOrigin: false } } }; export default config;