webrtc/vite.config.js

28 lines
636 B
JavaScript
Raw Normal View History

2023-10-13 05:45:12 +08:00
import { defineConfig } from 'vite'
import WindiCSS from 'vite-plugin-windicss'
export default defineConfig({
server: {
port: 4096,
proxy: {
'/webrtc': {
target: 'wss://webrtc.satori.love',
changeOrigin: true,
ws: true,
},
'/entanglement': {
target: 'wss://webrtc.satori.love',
changeOrigin: true,
ws: true,
},
'/webhook': 'https://webrtc.satori.love',
}
},
plugins: [
WindiCSS(),
2023-10-13 05:51:45 +08:00
],
build: {
target: "esnext"
}
2023-10-13 05:45:12 +08:00
})