Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
server.on('startup', (address) => {
const { basePath = '' } = this.config;
this.serverAddressPromise.resolve(address);
logger.info(`listening at ${address}/${trimLeadingSlash(basePath)}`);
});
server.on('shutdown', () => {
render(request).then((content) => ({
outfile: trimLeadingSlash(
request.outfile || indexFile(request.url || request)
),
content,
}))
)