Implement LiveKit calls

This commit is contained in:
2026-04-22 23:19:38 +03:00
Unverified
parent b7d884df58
commit 66a1060685
16 changed files with 465 additions and 27 deletions
+8 -2
View File
@@ -66,6 +66,9 @@ if (process.env.VITE_ELECTRON) {
);
}
const _lan = process.env.LAN_IP;
const _backendProxy = _lan ? `http://${_lan}:8300/` : "http://127.0.0.1:8300/";
export default defineConfig({
plugins: plugins,
resolve: {
@@ -80,13 +83,16 @@ export default defineConfig({
strictPort: true,
proxy: {
"/api": {
target: "http://127.0.0.1:8300/",
target: _backendProxy,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
ws: true
}
},
allowedHosts: ["beta.fromchat.ru"]
allowedHosts: [
"beta.fromchat.ru",
...(_lan ? [_lan] : []),
]
},
appType: "spa",
optimizeDeps: {