Adds /health endpoint for Kubernetes health checks
A quick description of health with minimal plugin. It is written in JS and not TS as it doesn't pick up ts files without compiling.
After installation, go to http://localhost:1337/health:
1
2
3
4
5
{
"uptime": 19122.561740091,
"message": "OK",
"timestamp": 1696513452150
}
In your strapi project run:
npm install strapi-health-plugin
To apply the plugin to Strapi run re-build command
strapi build
npm install strapi-health-plugin
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.