mirror of
https://github.com/open-webui/computer.git
synced 2026-11-19 12:21:49 +03:00
26 lines
503 B
TypeScript
26 lines
503 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [sveltekit(), tailwindcss()],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:9741',
|
|
changeOrigin: true,
|
|
ws: true
|
|
},
|
|
'/v1': {
|
|
target: 'http://localhost:9741',
|
|
changeOrigin: true
|
|
},
|
|
'/socket.io': {
|
|
target: 'http://localhost:9741',
|
|
changeOrigin: true,
|
|
ws: true
|
|
}
|
|
}
|
|
}
|
|
});
|