From c8b49e2ea382de9276ca0cee9f619df2cdcd5267 Mon Sep 17 00:00:00 2001 From: iamdoubz <> Date: Thu, 5 Nov 2026 16:08:33 -0600 Subject: [PATCH] Add Vite config building into static/ --- frontend/vite.config.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 frontend/vite.config.js diff --git a/frontend/vite.config.js b/frontend/vite.config.js new file mode 100644 index 0000000..101ff00 --- /dev/null +++ b/frontend/vite.config.js @@ -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' } }, +});