public folder
The project folder whose files are served as is from the site root, such as public/logo.png at /logo.png.
In more detail
Put robots.txt, favicons and other static files here. The standalone output does not include it, so Dockerfiles copy it into the runner stage.
Related terms
- static assets — Files served exactly as they are, such as images, fonts, CSS and compiled JavaScript.
- standalone output — A next.config setting that makes next build produce a self-contained folder with a minimal server.js and only the node_modules files it needs.
Taught in
- Containerized Deployment: Multi-Stage Docker Builds — Next.js 15 & Modern App Router Architecture