@nrwl/next:server

Serve a Next.js app.

Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/configuration/projectjson#targets.

Options

buildTarget

Required
string

Target which builds the application.

buildLibsFromSource

boolean
Default: true

Read buildable libraries from source instead of building them separately.

customServerPath

string

Use a custom server script.

dev

boolean
Default: true

Serve the application in the dev mode.

hostname

string

Hostname on which the application is served.

port

number
Default: 4200

Port to listen on.

proxyConfig

string

Path to the proxy configuration file.

quiet

boolean
Default: false

Hide error messages containing server information.

staticMarkup

boolean
Default: false

Static markup.