import { defineConfig } from 'vite' import { svelte } from '@sveltejs/vite-plugin-svelte' // https://vitejs.dev/config/ export default defineConfig({ plugins: [svelte( { compilerOptions: { customElement: true } } )], server: { proxy: { '/fm': { target: 'http://localhost:3200', changeOrigin: true, secure: false, rewrite: path => path.replace(/^\/fm/, ''), }, }, }, })