From f70a92b14ae67be71b91b3992ee80e4752624422 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Mon, 29 Sep 2025 20:57:04 -0700 Subject: [PATCH] git sha --- src/server.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server.tsx b/src/server.tsx index d247eab..6f7849c 100644 --- a/src/server.tsx +++ b/src/server.tsx @@ -23,13 +23,15 @@ type Success = { subdomain: string } +export const GIT_SHA = process.env.RENDER_GIT_COMMIT ?? (await Bun.$`git rev-parse HEAD`.text()).trim() + type Connection = { app: string, ws: any } let connections: Record = {} const pending = new Map void> const app = new Hono -app.get("/health", c => c.text("ok")) +app.get("/health", c => c.text(GIT_SHA)) app.get("/tunnels", c => { return c.html(