CodeZettaInterview Hub

Next.js · Deployment · Junior · Best Practice

What is `output: 'standalone'` useful for?

Short Interview Answer

Creates a minimal Node deployment folder for Docker/self-hosting.

Detailed Explanation

Copy static assets correctly. Smaller images than shipping full node_modules naively. Pair with multi-stage Docker builds.

Example

// next.config.js
module.exports = { output: 'standalone' };

Did you know this answer?