export const getNextConfig = ( appDir , dev ) => { const config = { dev } ; if ( dev || process . env . API_MOCKS ) { const { prepareConfig } = require ( '@nrwl/next/src/utils/config' ) ; const options = { root : `${ appDir }` , outputPath : `dist/${ appDir }` , fileReplacements : [ ] , } ; const context = { root : process . cwd ( ) , } ; const conf = prepareConfig ( 'phase-development-server' , options , context as any ) ; Object . assign ( config , { conf , dir : appDir } ) ; } return config ; } ;