Options

outputPath

Required
string

The output path of the generated files.

root

Required
string

The source root

nextConfig

string

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).

buildLibsFromSource

boolean
Default: true

Read buildable libraries from source instead of building them separately.

debug

boolean
Default: false

Enable Next.js debug build logging

fileReplacements

Default: []

Replace files with other files in the build.

includeDevDependenciesInPackageJson

boolean
Default: false

Include devDependencies in the generated package.json file. By default only production dependencies are included.

generateLockfile

boolean
Default: false

Generate a lockfile (e.g. package-lock.json) that matches the workspace lockfile to ensure package versions match.