import { defineConfig } from 'vite' import { svelte } from '@sveltejs/vite-plugin-svelte' import tailwindcss from '@tailwindcss/vite' // https://vite.dev/config/ export default defineConfig({ plugins: [ svelte(), tailwindcss(), ], server: { proxy: { // forward serial API calls (including SSE) to backend running on :3000 '/serial': { target: 'http://localhost:3000', changeOrigin: true, ws: false, }, }, }, })