lynxkite / web /vite.config.ts
darabos's picture
Start switching to CRDT. The env setting works!!!
a180fd2
raw
history blame
484 Bytes
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import Icons from 'unplugin-icons/vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
svelte(),
Icons({ compiler: 'svelte', defaultStyle: 'vertical-align: sub;' }),
],
server: {
proxy: {
'/api': 'http://127.0.0.1:8000',
'/ws': {
target: 'ws://127.0.0.1:8000',
ws: true,
changeOrigin: true,
},
},
},
})