Next Config
Factory functions for creating preset Next configurations. Primarily used in unison with the Lumos CLI.
Extending config
Update package.json:
Create file in configs folder:
configs/next.js
// TBDmodulesexports = target: 'serverless';
configs/next.js
modules { if phase === PHASE_DEVELOPMENT_SERVER return /* development only config options here */ ; return /* config options for all phases except development here */ ;};
Settings
Main settings
Default values
ENV Options
-
LUMOS_BUILD_FOLDER=<string>
- define build folder for current build
cross-env LUMOS_BUILD_FOLDER = 'build' lumos next build -
LUMOS_SRC_FOLDER=<string>
- define src folder for current build
cross-env LUMOS_SRC_FOLDER='src' lumos next build -
LUMOS_TARGET=<server|serverless|experimental-serverless-trace>
- Define target for current build
cross-env LUMOS_TARGET='server' lumos next build