diff --git a/src/createApp.js b/src/createApp.js index 53662a72f94c53844805153378a48fa88ac8a399..ded121f1d227ec305d63afae423402c8653cb2cf 100644 --- a/src/createApp.js +++ b/src/createApp.js @@ -35,7 +35,7 @@ export function createApp () { const httpLogger = pinoHttp({ logger, autoLogging: { ignorePaths } }) const healthCheck = new health.HealthChecker() - const readinessCheck = new health.ReadinessCheck('getDependencies', async function () { + const startupCheck = new health.StartupCheck('warmup cache', async function () { try { const viteManifests = await loadViteManifests() const deps = viteManifestToDeps(viteManifests) @@ -45,7 +45,7 @@ export function createApp () { throw e } }) - healthCheck.registerReadinessCheck(readinessCheck) + healthCheck.registerStartupCheck(startupCheck) // Application-level middleware app.use(httpLogger)