diff --git a/assets/js/hooks/js_view.js b/assets/js/hooks/js_view.js index e7f70bf10..8ffec257e 100644 --- a/assets/js/hooks/js_view.js +++ b/assets/js/hooks/js_view.js @@ -507,9 +507,11 @@ const JSView = { * once and the response is cached. */ function cachedPublicEndpointCheck() { + const healthUrl = window.LIVEBOOK_BASE_URL_PATH + "/public/health"; + cachedPublicEndpointCheck.promise = cachedPublicEndpointCheck.promise || - fetch("/public/health") + fetch(healthUrl) .then((response) => response.status === 200) .catch((error) => false);