This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-16 23:47:02 -07:00
1 parent 3e186abdd9
commit 75df30c0ea
3 files changed
+31 -4

No files matched your search

+28
View File
@@ -3,6 +3,8 @@ import { defineConfig } from 'vite';
import { viteStaticCopy } from 'vite-plugin-static-copy';
const backendTarget = 'http://localhost:8080';
export default defineConfig({
plugins: [
sveltekit(),
@@ -23,6 +25,32 @@ export default defineConfig({
build: {
sourcemap: true
},
server: {
proxy: {
'/api': {
target: backendTarget,
changeOrigin: true,
ws: true
},
'/ollama': {
target: backendTarget,
changeOrigin: true
},
'/openai': {
target: backendTarget,
changeOrigin: true
},
'/oauth': {
target: backendTarget,
changeOrigin: true
},
'/ws': {
target: backendTarget,
changeOrigin: true,
ws: true
}
}
},
worker: {
format: 'es'
},