server.js

The small generated Node.js server file in the standalone output that serves the whole app.

In more detail

Start it with node server.js; it reads PORT and HOSTNAME environment variables. It replaces next start, so the container does not need the Next.js CLI.

Related terms

Taught in

References