fix: websockets and vite
This commit is contained in:
parent
426a2706d8
commit
419fde1a10
4 changed files with 17 additions and 17 deletions
|
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue