healthcheck-next — Optimization
Trust a controlled proxy
Section titled “Trust a controlled proxy”IP and CIDR filtering support IPv4 and require trustProxy. Enable it only when the reverse proxy strips and sets the configured header.
Choose one authorization scheme
Section titled “Choose one authorization scheme”Select bearer token or basic authentication per route. Both use the Authorization header.
Keep responses uncached
Section titled “Keep responses uncached”Responses use cache-control: no-store, max-age=0. Health route includeDetails defaults to false; enable details only for protected routes.
Match the runtime to the manager
Section titled “Match the runtime to the manager”The route adapter supports Next.js Node.js and Edge runtimes. Use runtime = "nodejs" when the manager uses the Node adapter.