Skip to content

Commit 1209b02

Browse files
committed
chore: revert changes for health endpoint
1 parent e0e7c58 commit 1209b02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,10 @@ export const getInternetConnectivity = (controller: AbortController): Promise<an
563563
controller.abort()
564564
}, 10000)
565565

566-
return fetch('https://devtron-labs.github.io/', {
566+
return fetch(`${window._env_?.CENTRAL_API_ENDPOINT ?? 'https://api.devtron.ai'}/${Routes.HEALTH}`, {
567567
signal: controller.signal,
568568
})
569-
.then(({ok}) => ok)
569+
.then((res) => res.json())
570570
.finally(() => {
571571
clearTimeout(timeoutId)
572572
})

0 commit comments

Comments
 (0)