Files
computer/cptr/frontend/vite.config.ts
T
2026-06-04 08:21:34 -07:00

22 lines
425 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
},
'/socket.io': {
target: 'http://localhost:9741',
changeOrigin: true,
ws: true
}
}
}
});