Add Vite config building into static/

This commit is contained in:
iamdoubz committed 2026-11-05 16:08:33 -06:00
1 parent 1ebf99a9c4
commit c8b49e2ea3
1 file changed
+9
+9
View File
@@ -0,0 +1,9 @@
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
export default defineConfig({
plugins: [svelte()],
// The Python server serves static/; `npm run dev` proxies the API to it.
build: { outDir: '../static', emptyOutDir: true },
server: { proxy: { '/api': 'http://127.0.0.1:8000' } },
});