.next directory

The folder where next build writes its output: compiled server code, static assets in .next/static and, if enabled, .next/standalone.

In more detail

Never commit it. In a Docker build copy .next/standalone and .next/static into the final image; the static folder holds the hashed JavaScript and CSS files browsers download.

Related terms

Taught in

References