Skip to content
Merged
Changes from all commits
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
5 changes: 5 additions & 0 deletions packages/void/src/router/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1361,6 +1361,11 @@ async function serveWithAssets(request, env, response) {

const internalRouteHelper = `async function __handleInternal(request, env, ctx) {
const url = new URL(request.url);
// Readiness probe — platform polls this to confirm the worker is live after WfP upload.
// Handled here (before app.fetch) so user middleware cannot block it.
if (request.method === "GET" && url.pathname === "/__void/ready") {
return Response.json({ ready: true });
}
if (request.method !== "POST" || url.pathname !== "/__void/prerender-paths") return null;
const __expected = env.__VOID_PROXY_TOKEN;
if (__expected) {
Expand Down
Loading