fix: point dashboard API calls to api.pingql.com
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user