@gxp-dev/tools 2.0.51 → 2.0.52

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.51",
3
+ "version": "2.0.52",
4
4
  "description": "Dev tools to create platform plugins",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
@@ -208,6 +208,14 @@ export default defineConfig(({ mode }) => {
208
208
  name: "request-logger-cors",
209
209
  configureServer(server) {
210
210
  server.middlewares.use((req, res, next) => {
211
+ // Health check route
212
+ if (req.url === "/__health") {
213
+ res.statusCode = 200;
214
+ res.setHeader("Content-Type", "application/json");
215
+ res.end(JSON.stringify({ status: "ok" }));
216
+ return;
217
+ }
218
+
211
219
  const start = Date.now();
212
220
  const originalEnd = res.end;
213
221