mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 04:29:40 +02:00
- Add svelte-i18n configuration with SSR support to all web apps - Create LanguageSelector component for each app with brand colors - Add German and English locale files - Integrate language switcher into login pages via headerControls snippet - Fix Tailwind v4 @source directives for shared package scanning - Update AppSlider styling to match login container design Apps updated: - Memoro (gold #f8d62b) - Märchenzauber (pink #FF6B9D) - ManaDeck (purple #8b5cf6) - ManaCore (indigo #6366f1) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
782 B
JavaScript
24 lines
782 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;
|