17 lines
347 B
TypeScript
17 lines
347 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
|
|
export default defineConfig({
|
|
plugins: [svelte()],
|
|
server: {
|
|
proxy: {
|
|
'/api': 'http://localhost:8080',
|
|
'/healthz': 'http://localhost:8080',
|
|
'/ws': {
|
|
target: 'ws://localhost:8080',
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
})
|