Skip to main content
InterviewHubPRO
Section Overview
Q50

Question 50 of 50

Part 3: Advanced Internals, Performance & Production (Senior / Staff)

100%
Nuxt & Universal SSR (50 Qs)•Part 3: Advanced Internals, Performance & Production (Senior / Staff)

Zero-Downtime Deployment and Health Checks for Nuxt 3 Containers.

senior LevelFormsPerformanceDocker & Containers

In Simple Words: Deploying Nuxt 3 inside Docker/Kubernetes in enterprise environments requires:

  1. Multi-Stage Dockerfile: Builds with npm run build and runs output .output/server/index.mjs on lightweight Node Alpine with no devDependencies.
  2. Health Check Endpoint: Create server/routes/_healthz.ts returning { status: 'healthy' } for Kubernetes liveness and readiness probes.
  3. Graceful Shutdown: Listen for SIGTERM and allow Nitro to finish in-flight requests before container termination.