14 lines
332 B
TypeScript
14 lines
332 B
TypeScript
import {
|
|
DiskSpaceCheck,
|
|
HealthChecks,
|
|
MemoryHeapCheck,
|
|
} from "@adonisjs/core/health"
|
|
import { DbCheck } from "@adonisjs/lucid/database"
|
|
import db from "@adonisjs/lucid/services/db"
|
|
|
|
export const healthChecks = new HealthChecks().register([
|
|
new DiskSpaceCheck(),
|
|
new MemoryHeapCheck(),
|
|
new DbCheck(db.connection()),
|
|
])
|