build/lib/start-app.js
async function createApp(middlewareConfig) {
  const app = new Koa()

  const middleware = await setupMiddleware(middlewareConfig, app)

  if (app.env == 'production') {
    app.proxy = true
  }

  return {
    app,
    middleware,
  }
}
async function createApp(middlewareConfig) {
  const app = new Koa()

  const middleware = await setupMiddleware(middlewareConfig, app)

  if (app.env == 'production') {
    app.proxy = true
  }

  return {
    app,
    middleware,
  }
}
async function createApp ( middlewareConfig ) { const app = new Koa ( ) const middleware = await setupMiddleware ( middlewareConfig , app ) if ( app . env == 'production' ) { app . proxy = true } return { app , middleware , } }
Create an application and setup middleware.
@param {MiddlewareConfig} middlewareConfig
Create an application and setup middleware .