@nrwl/next:custom-server

Add a custom server to existing Next.js application.

Usage

nx generate custom-server ...

By default, Nx will search for custom-server in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nrwl/next:custom-server ...

Show what will be generated without writing to disk:

nx g custom-server ... --dry-run

Examples

Add a custom server to existing Next.js app.:

nx g custom-server my-app

Options

compiler

string
Default: tsc
Accepted values: tsc, swc

The compiler used to build the custom server.

project

pRequired
string

The name of the project.