Add health check endpoint and resolve locale detection bug#387
Merged
Petersmit27 merged 5 commits intospliit-app:mainfrom Sep 5, 2025
Merged
Add health check endpoint and resolve locale detection bug#387Petersmit27 merged 5 commits intospliit-app:mainfrom
Petersmit27 merged 5 commits intospliit-app:mainfrom
Conversation
- Introduced `/api/health/readiness` endpoint to check if the application can serve requests, including database connectivity. - Introduced `/api/health/liveness` endpoint to verify if the application is running independently of external dependencies. - Updated the health check logic to streamline database connectivity checks and response handling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi,
After being impacted by #221 I wanted to contribute to this great replacement for Tricount.
I let loose Cursor to get this very basic implementation for:
I differentiated "liveness" and "readiness" probe but for most cases just the
/api/healthwill be enough.New Endpoints
The response looks like this (code 200 or 503). We could add test to other external services such as S3/openAI but I think it would be overkill for the moment
{ "status": "healthy", "services": { "database": { "status": "healthy" } } }Local Testing
curl http://localhost:3000- No more 500 errors with missing Accept-LanguageLet me know if you want to spliit this into two PR, but it should close #221.