Files
bili-sync-ai/web/vite.config.ts
2025-07-11 00:14:20 +08:00

20 lines
427 B
TypeScript

import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
server: {
proxy: {
'/api/ws': {
target: 'ws://localhost:12345',
ws: true,
rewriteWsOrigin: true
},
'/api': 'http://localhost:12345',
'/image-proxy': 'http://localhost:12345'
},
host: true
}
});