mirror of
https://github.com/samvallad33/vestige.git
synced 2026-04-26 09:16:21 +02:00
21 lines
392 B
TypeScript
21 lines
392 B
TypeScript
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
||
|
|
import tailwindcss from '@tailwindcss/vite';
|
||
|
|
import { defineConfig } from 'vite';
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [tailwindcss(), sveltekit()],
|
||
|
|
server: {
|
||
|
|
port: 5173,
|
||
|
|
proxy: {
|
||
|
|
'/api': {
|
||
|
|
target: 'http://127.0.0.1:3927',
|
||
|
|
changeOrigin: true
|
||
|
|
},
|
||
|
|
'/ws': {
|
||
|
|
target: 'ws://127.0.0.1:3927',
|
||
|
|
ws: true
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
});
|