Add Vite config building into static/
This commit is contained in:
1 parent
1ebf99a9c4
commit
c8b49e2ea3
1 file changed
+9
@@ -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' } },
|
||||||
|
});
|
||||||
Reference in new issue
Block a user