git sha
This commit is contained in:
parent
6480b94d78
commit
f70a92b14a
|
|
@ -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<string, Connection> = {}
|
||||
const pending = new Map<string, (res: any) => 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(<ul>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user