import adapter from '@sveltejs/adapter-node'; /** @type {import('@sveltejs/kit').Config} */ const config = { compilerOptions: { runes: ({ filename }) => (filename.split(/[/\\]/).includes('node_modules') ? undefined : true) }, kit: { adapter: adapter({ out: 'build', bodySize: 500 * 1024 * 1024 }), // 500 MB for audio uploads // CSRF origin check disabled: this app uses no cookie-based session auth, // and the Web Share Target POST legitimately arrives from external origins. csrf: { checkOrigin: false } } }; export default config;