@gxp-dev/tools 2.0.52 → 2.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gxp-dev/tools",
3
- "version": "2.0.52",
3
+ "version": "2.0.53",
4
4
  "description": "Dev tools to create platform plugins",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
@@ -259,6 +259,14 @@ export default defineConfig(({ mode }) => {
259
259
  name: "request-logger-cors",
260
260
  configureServer(server) {
261
261
  server.middlewares.use((req, res, next) => {
262
+ // Health check route
263
+ if (req.url === "/__health") {
264
+ res.statusCode = 200;
265
+ res.setHeader("Content-Type", "application/json");
266
+ res.end(JSON.stringify({ status: "ok" }));
267
+ return;
268
+ }
269
+
262
270
  const start = Date.now();
263
271
  const originalEnd = res.end;
264
272