Magic / frontend /vite.config.ts
radames's picture
use proxy to run dev mode
918ded4
raw
history blame
325 Bytes
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [sveltekit()],
server: {
proxy: {
'^/settings|/queue_size|/stream': 'http://localhost:7860',
'/ws': {
target: 'ws://localhost:7860',
ws: true
}
},
}
});