Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
port: Config.get('app.port')
})
// register plugins to web instance
await web.register([
Inert,
Vision,
{
plugin: require('hapi-dev-errors'),
options: {
showErrors: Config.get('app.env') !== 'production',
useYouch: true
}
},
{
plugin: Laabr.plugin,
options: {
colored: true,
hapiPino: {
logPayload: false
}
}
}
])
this.configureViews(web)
const middlewarePath = Path.resolve(__appRoot, 'boost', 'middleware')
const boostMiddlewares = await this.loadHapiPluginsFromFolder(middlewarePath)
await web.register(boostMiddlewares)
// register Web plugins created by the user