Deployment
Readiness endpoint
This dependency-free route is a basic process smoke check, not genuine service readiness. In the Cache Components-disabled lane, force-dynamic prevents static route generation. A real readiness probe must check essential dependencies under bounded time and return non-success when unavailable; do not make liveness restart the process merely because a downstream service is temporarily offline. Source: https://kubernetes.io/docs/concepts/workloads/pods/probes/. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.
Formal Syntax & Structure
nextjs syntaxnextjs
GET /api/readyWorking Example
Example Snippetnextjs
export const dynamic='force-dynamic';export function GET(){return Response.json({ready:true},{headers:{'Cache-Control':'no-store'}});}