echobind / bisonapp

A Full Stack Jamstack in-a-box brought to you by Echobind
MIT License
589 stars 29 forks source link

feat: Add a health check endpoint. #311

Closed cullylarson closed 1 year ago

cullylarson commented 1 year ago

Most of the hosting services we use (Render and Flightcontrol) require a health check endpoint. This PR adds such an endpoint that also includes some helpful info.

Checklist

kgajera commented 1 year ago

Should we refactor this to use the config changes from https://github.com/echobind/bisonapp/pull/312?

cullylarson commented 1 year ago

Should we refactor this to use the config changes from #312?

@kgajera The only value from config that I've used in the health endpoint on other projects is stage. Most of the rest of the ones included here aren't directly referenced in config. E.g. NODE_ENV and APP_ENV are consolidated into stage. So it's helpful to see the values directly.