Skip to content

Can i add healthchecks/liveness/readiness directly to yoga server? #1423

Answered by ardatan
MM3y3r asked this question in Q&A
Discussion options

You must be logged in to vote

Standalone Yoga server has a plugin for /health and /readiness endpoints.
https://github.com/dotansimha/graphql-yoga/blob/master/packages/common/src/plugins/useHealthCheck.ts#L16
But you cannot change the path names for these for now. You can implement their own plugin with these experimental HTTP specific hooks.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MM3y3r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants