mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-24 00:16:42 +02:00
- 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>
15 lines
406 B
TypeScript
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'],
|
|
},
|
|
});
|