Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = function buildHandler ({ output, docVersion }) {
console.log(`Building your docs at: "${output}"`)
try {
const config = getConfig({ output, docVersion })
return build({
config,
silent: false,
})
} catch (err) {
console.log(err)
}
}