16 lines
456 B
TypeScript
16 lines
456 B
TypeScript
import { defineConfig } from 'vite';
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
import sveltePreprocess from 'svelte-preprocess';
|
|
|
|
export default defineConfig({
|
|
plugins: [svelte({ preprocess: sveltePreprocess() })],
|
|
worker: { format: 'es' },
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
// Local dev: route API calls to the FastAPI backend (mock-safe).
|
|
'/api': { target: 'http://127.0.0.1:18081', changeOrigin: true }
|
|
}
|
|
}
|
|
});
|