Kaynağa Gözat

fix: sse not available in sub-dir deployment #829

Jacky 3 ay önce
ebeveyn
işleme
250bd8ec1e

+ 1 - 1
app/src/components/NodeSelector/NodeSelector.vue

@@ -24,7 +24,7 @@ function reconnect() {
 }
 
 function newSSE() {
-  const s = new SSE('/api/environments/enabled', {
+  const s = new SSE('api/environments/enabled', {
     headers: {
       Authorization: token.value,
     },

+ 1 - 1
app/src/components/Notification/Notification.vue

@@ -30,7 +30,7 @@ function reconnect() {
 }
 
 function newSSE() {
-  const s = new SSE('/api/notifications/live', {
+  const s = new SSE('api/notifications/live', {
     headers: {
       Authorization: token.value,
     },