From 9fb90d9ea88bc1886137c41d81933fd69a147ef5 Mon Sep 17 00:00:00 2001 From: M1 Date: Wed, 18 Mar 2026 09:39:07 +0400 Subject: [PATCH] fix: point dashboard API calls to api.pingql.com --- apps/web/src/dashboard/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/dashboard/app.js b/apps/web/src/dashboard/app.js index 3f89537..672f5bc 100644 --- a/apps/web/src/dashboard/app.js +++ b/apps/web/src/dashboard/app.js @@ -1,7 +1,7 @@ // PingQL Dashboard — shared utilities // Auth is now cookie-based. No localStorage needed. -const API_BASE = window.location.origin; +const API_BASE = 'https://api.pingql.com'; function logout() { window.location.href = '/dashboard/logout'; @@ -66,7 +66,7 @@ function watchAccount(onPing) { async function connect() { try { - const res = await fetch(`/account/stream`, { + const res = await fetch(`${API_BASE}/account/stream`, { credentials: 'same-origin', signal: ac.signal, });