radames's picture
add api prefix to routes
995fb39
raw
history blame
303 Bytes
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [sveltekit()],
server: {
proxy: {
'/api': 'http://localhost:7860',
'/api/ws': {
target: 'ws://localhost:7860',
ws: true
}
},
}
});