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(