diff --git a/.changeset/honest-facts-think.md b/.changeset/honest-facts-think.md new file mode 100644 index 00000000..69fe3f24 --- /dev/null +++ b/.changeset/honest-facts-think.md @@ -0,0 +1,5 @@ +--- +'@cloudflare/sandbox': patch +--- + +Fix a bug where the /api/ping endpoint was not handled, causing a 500 error diff --git a/packages/sandbox-container/src/handlers/misc-handler.ts b/packages/sandbox-container/src/handlers/misc-handler.ts index 92c46992..aa9a7238 100644 --- a/packages/sandbox-container/src/handlers/misc-handler.ts +++ b/packages/sandbox-container/src/handlers/misc-handler.ts @@ -21,6 +21,8 @@ export class MiscHandler extends BaseHandler { return await this.handleRoot(request, context); case '/api/health': return await this.handleHealth(request, context); + case '/api/ping': + return await this.handleHealth(request, context); case '/api/shutdown': return await this.handleShutdown(request, context); case '/api/version':