@nx/next:build
Build 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/reference/project-configuration#targets.
Build 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/reference/project-configuration#targets.
The output path of the generated files.
The source root
Path (relative to workspace root) to a function which takes phase, config, and builder options, and returns the resulting config. This is an advanced option and should not be used with a normal Next.js config file (i.e. next.config.js
).
true
Read buildable libraries from source instead of building them separately.
false
Enable Next.js debug build logging
[]
Replace files with other files in the build.
false
Include devDependencies
in the generated package.json file. By default only production dependencies
are included.
false
Generate a lockfile (e.g. package-lock.json) that matches the workspace lockfile to ensure package versions match.