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
|
|
|
})
|