From 21e7adf698d0921fa925fd2a81f624fe406ae25d Mon Sep 17 00:00:00 2001 From: Dillon Nys Date: Thu, 8 Feb 2024 09:39:33 -0800 Subject: [PATCH] fix(runtime): Route path Fixes the route path captured by the heartbeat monitor. --- packages/celest/CHANGELOG.md | 4 ++++ packages/celest/lib/src/runtime/serve.dart | 2 +- packages/celest/pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/celest/CHANGELOG.md b/packages/celest/CHANGELOG.md index 8f4ee231..95c71dbd 100644 --- a/packages/celest/CHANGELOG.md +++ b/packages/celest/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.2.0-dev.2 + +- Fix route path in heartbeat monitor + ## 0.2.0-dev.1 ## 0.2.0-dev diff --git a/packages/celest/lib/src/runtime/serve.dart b/packages/celest/lib/src/runtime/serve.dart index 4c352f7a..92dd1712 100644 --- a/packages/celest/lib/src/runtime/serve.dart +++ b/packages/celest/lib/src/runtime/serve.dart @@ -90,7 +90,7 @@ abstract base class CloudFunctionTarget { Handler _heartbeatMiddleware(Handler inner) { return (request) async { - print(request.handlerPath); + print(request.requestedUri.path); return inner(request); }; } diff --git a/packages/celest/pubspec.yaml b/packages/celest/pubspec.yaml index 9a56f33f..883a2943 100644 --- a/packages/celest/pubspec.yaml +++ b/packages/celest/pubspec.yaml @@ -1,6 +1,6 @@ name: celest description: The Flutter cloud platform. Celest enables you to build your entire backend in Dart. -version: 0.2.0-dev.1 +version: 0.2.0-dev.2 homepage: https://celest.dev repository: https://github.com/celest-dev/celest/tree/main/packages/celest