dont hardcode the wss url

This commit is contained in:
ArabCoders 2024-12-17 19:06:18 +03:00
parent fcb2eda4ba
commit daea07c678
2 changed files with 2 additions and 2 deletions

2
.vscode/launch.json vendored
View file

@ -18,7 +18,7 @@
"type": "node",
"cwd": "${workspaceFolder}/ui",
"env": {
"VUE_APP_BASE_URL": "http://localhost:8081",
"NUXT_PUBLIC_WSS": ":8081/",
}
},
{

View file

@ -14,7 +14,7 @@ export default defineNuxtConfig({
runtimeConfig: {
public: {
domain: '/',
wss: ':8081/',
wss: process.env.VUE_APP_BASE_URL ?? '',
version: '2.0.0',
}
},