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 handler ({ output, port, path }) {
if (path) {
console.log(chalk.green(`Serving from: ${path}`))
serve(path, {
port,
})
} else {
console.log('Serving from: docs...')
const config = getConfig({ output })
start({
config,
})
}
}