This commit is contained in:
Chris Wanstrath 2025-09-29 20:57:04 -07:00
parent 6480b94d78
commit f70a92b14a

View File

@ -23,13 +23,15 @@ type Success = {
subdomain: string 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 } type Connection = { app: string, ws: any }
let connections: Record<string, Connection> = {} let connections: Record<string, Connection> = {}
const pending = new Map<string, (res: any) => void> const pending = new Map<string, (res: any) => void>
const app = new Hono const app = new Hono
app.get("/health", c => c.text("ok")) app.get("/health", c => c.text(GIT_SHA))
app.get("/tunnels", c => { app.get("/tunnels", c => {
return c.html(<ul> return c.html(<ul>