managarten/apps/picture/apps/web/vite.config.ts
Till-JS a09c389ede fix(picture): resolve hydration error and CORS issues
- Add ssr.noExternal config for @manacore packages with .svelte.ts files
  to ensure Svelte 5 runes are properly processed
- Fix CORS configuration to return Access-Control-Allow-Origin header
  by using callback function for origin validation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 14:14:08 +01:00

15 lines
406 B
TypeScript

import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
server: {
port: 5175,
strictPort: true,
},
ssr: {
// Process @manacore packages that contain .svelte.ts files with runes
noExternal: ['@manacore/shared-theme', '@manacore/shared-auth'],
},
});