import { svelte } from '@sveltejs/vite-plugin-svelte'; import { defineConfig } from 'vite'; // Dev: the client on 127.0.0.1:8480, proxying /api to the server on 8481. // Preview from your machine with: ssh -p 14922 -L 8480:localhost:8480 export default defineConfig({ plugins: [svelte()], server: { host: '127.0.0.1', port: 8480, strictPort: true, proxy: { '/api': 'http://127.0.0.1:8481' }, }, build: { target: 'es2022', sourcemap: false }, });