Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion vtex/server/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@ const runtime = withRuntime<Env, typeof StateSchema>({
tools,
});

serve(runtime.fetch);
serve((req, ...args) => {
// Fast path for K8s readiness/liveness probes hitting GET /
if (req.method === "GET" && new URL(req.url).pathname === "/") {
return new Response("OK", { status: 200 });
}
return runtime.fetch(req, ...args);
});
Loading