Next.js · Middle · Question 58 of 75
What is output: 'standalone' useful for?
- ✓Correct answer: Building a minimal server folder with only the needed
node_modules, e.g. for a small Docker image - 2Exporting static HTML files
- 3Running Next.js without Node.js
Explanation
The build traces imported files and copies them to .next/standalone with a server.js. public and .next/static must be copied separately or served from a CDN.