nuxt-health
Version:
Nuxt health check server middleware
27 lines (23 loc) • 999 B
Markdown
# nuxt-health
[](https://www.codacy.com/gh/LuxChanLu/nuxt-health/dashboard?utm_source=github.com&utm_medium=referral&utm_content=LuxChanLu/nuxt-health&utm_campaign=Badge_Grade)
[](https://codeclimate.com/github/LuxChanLu/nuxt-health/maintainability)
[](https://www.npmjs.com/package/nuxt-health)
## How to use it
In your `nuxt.config.js`
```js
module.exports = {
modules: [
'nuxt-health'
],
health: {
/** @type {String?} Path of health check. */
path: '/.well-known/nuxt/server-health',
/** @type {Boolean?} Enable server check. */
server: true,
/** @type {Boolean?} Enable client check. */
client: true,
/** @type {Function?} Add custom check to the health */
async custom(options) { }
}
}
```