Skip to content

Commit 3be8cdf

Browse files
authored
fix(frontend): skip /health checks for static notebooks (#9498)
1 parent 8f45cdc commit 3be8cdf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

frontend/src/core/runtime/runtime.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Logger } from "@/utils/Logger";
55
import { KnownQueryParams } from "../constants";
66
import { isIslands } from "../islands/utils";
77
import { getSessionId, type SessionId } from "../kernel/session";
8+
import { isStaticNotebook } from "../static/static-state";
89
import { isWasm } from "../wasm/utils";
910
import type { RuntimeConfig } from "./types";
1011

@@ -178,8 +179,8 @@ export class RuntimeManager {
178179
}
179180

180181
async isHealthy(): Promise<boolean> {
181-
// Always healthy if WASM
182-
if (isWasm() || isIslands()) {
182+
// Always healthy if WASM, Islands, or a static notebook (no server)
183+
if (isWasm() || isIslands() || isStaticNotebook()) {
183184
return true;
184185
}
185186

0 commit comments

Comments
 (0)