mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-19 06:01:24 +02:00
Applied formatting to 1487+ files using pnpm format:write - TypeScript/JavaScript files - Svelte components - Astro pages - JSON configs - Markdown docs 13 files still need manual review (Astro JSX comments)
24 lines
786 B
JavaScript
24 lines
786 B
JavaScript
import adapter from '@sveltejs/adapter-netlify';
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
// Consult https://svelte.dev/docs/kit/integrations
|
|
// for more information about preprocessors
|
|
preprocess: vitePreprocess(),
|
|
|
|
kit: {
|
|
// Netlify adapter for SSR with server-side POST handling (required for Apple Sign-In)
|
|
adapter: adapter({
|
|
edge: false, // Use Node-based Netlify Functions (better for OAuth)
|
|
split: false, // Single function for all routes (simpler deployment)
|
|
}),
|
|
// Disable built-in CSRF check - we handle it in hooks.server.ts
|
|
// Using empty array allows all origins (equivalent to checkOrigin: false)
|
|
csrf: {
|
|
trustedOrigins: [],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|