diff --git a/packages/nitro/src/runtime/app/render.ts b/packages/nitro/src/runtime/app/render.ts index af2c479b1f..1920715a38 100644 --- a/packages/nitro/src/runtime/app/render.ts +++ b/packages/nitro/src/runtime/app/render.ts @@ -4,14 +4,16 @@ import config from './config' // @ts-ignore import { renderToString } from '~renderer' // @ts-ignore -import server from '~build/dist/server/server' +import createApp from '~build/dist/server/server' // @ts-ignore import clientManifest from '~build/dist/server/client.manifest.json' // @ts-ignore import htmlTemplate from '~build/views/document.template.js' -const renderer = createRenderer(server, { - clientManifest, +function _interopDefault (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e } } + +const renderer = createRenderer(_interopDefault(createApp), { + clientManifest: _interopDefault(clientManifest), renderToString })