fix: websockets and vite

This commit is contained in:
Mat12143 2025-08-02 05:16:37 +02:00
parent 426a2706d8
commit 419fde1a10
4 changed files with 17 additions and 17 deletions

View file

@ -1,21 +1,22 @@
import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import tailwindcss from "@tailwindcss/vite"
import { sveltekit } from "@sveltejs/kit/vite"
import { defineConfig } from "vite"
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
server: {
proxy: {
'/api': {
"/api": {
target: "http://backend:5000",
changeOrigin: false,
secure: false
secure: false,
},
'/ws': {
"/ws": {
target: "http://backend:5000",
changeOrigin: false,
secure: false
}
}
}
});
secure: false,
ws: true,
},
},
},
})