Expo

Base

Build

build {
	_buildNextData

}
_buildNextData {
	cli = ExportPodCLICommand
	cli.enrichArgs {podId: NextjsExportPod.id}
	cli.execute
}

Export

export {
	if !@_isInitialized @init

	@build
}
_isInitialized {
	fs.exists(".next/package.json")
}

case PublishCommands.EXPORT: {
    ...
    build
    export
}

export {
    startNextExport
}
npm run export
    "export": "npm run build && next export",