Skip to content

Commit 6060239

Browse files
committed
add health endpoint
1 parent 8dab200 commit 6060239

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/server.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ FutureOr<Response> _routeRequest(
139139
print('DEBUG: Headers: ${request.headers}');
140140

141141
// Handle special Node.js-compatible endpoints
142+
if (requestPath == '__/health') {
143+
// Health check endpoint (used by Firebase emulator)
144+
return Response.ok('OK');
145+
}
146+
142147
if (requestPath == '__/quitquitquit') {
143148
// Graceful shutdown endpoint (used by Cloud Run)
144149
return _handleQuitQuitQuit(request);

0 commit comments

Comments
 (0)