Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: allow for base url redirects (#5287)

Dylan Madisetti9d254790bc04
diff --git a/frontend/src/core/runtime/runtime.ts b/frontend/src/core/runtime/runtime.ts
index bdc44ca0b8..e4376c686e 100644
--- a/frontend/src/core/runtime/runtime.ts
+++ b/frontend/src/core/runtime/runtime.ts
@@ -121,6 +121,10 @@ export class RuntimeManager {
async isHealthy(): Promise<boolean> {
try {
const response = await fetch(this.healthURL().toString());
+ // If there is a redirect, update the URL in the config
+ if (response.redirected) {
+ this.config.url = response.url;
+ }
return response.ok;
} catch {
return false;