@@ -110,11 +110,15 @@ export default defineConfig({
|
||||
proxy: {
|
||||
// Proxy for WebSocket server
|
||||
"/ws": {
|
||||
target: "http://localhost:4000",
|
||||
target: "https://localhost:4000",
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
ws: true
|
||||
}
|
||||
},
|
||||
https: {
|
||||
key: await fsPromises.readFile("../certs/key.pem"),
|
||||
cert: await fsPromises.readFile("../certs/cert.pem")
|
||||
}
|
||||
},
|
||||
build: {
|
||||
|
||||
Reference in New Issue
Block a user