// IPC need to be the first import to allow it to catch errors happening during
// the other imports
import startHandler from '../internal/page-server-handler'

import Document from '@vercel/turbopack-next/pages/_document'
import App from '@vercel/turbopack-next/pages/_app'

import chunkGroup from 'INNER_CLIENT_CHUNK_GROUP'

startHandler({
  isDataReq: false,
  App,
  Document,
  mod: () => {
    return import('INNER').then((namespace) => ({
      Component: namespace.default as any,
      namespace,
    }))
  },
  chunkGroup,
})
