Package

@nrwl/next

When using Next.js in Nx, you get the out-of-the-box support for TypeScript, Cypress, and Jest. No need to configure anything: watch mode, source maps, and typings just work.

The Next.js plugin contains executors and generators for managing Next.js applications and libraries within an Nx workspace. It provides:

  • Scaffolding for creating, building, serving, linting, and testing Next.js applications.

  • Integration with building, serving, and exporting a Next.js application.

  • Integration with React libraries within the workspace.

Here is a list of all the executors and generators available from this package.

Executors

  • build

    Build a Next.js application.

  • server

    Serve a Next.js application.

  • export

    Export a Next.js application. The exported application is located at dist/$outputPath/exported.

Generators