Files
2026-08-06 19:00:08 +12:00

18 lines
467 B
JavaScript

import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [svelte(), tailwindcss()],
build: {
outDir: 'dist',
},
server: {
proxy: {
// `npm run dev` proxies API calls to the Go backend so the SPA can be
// developed without rebuilding the whole binary on every change.
'/api': 'http://localhost:8080',
},
},
})