Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
refactor!: Fix typo in NuxtRenderHTMLContext
Browse files Browse the repository at this point in the history
  • Loading branch information
MorevM committed Nov 4, 2022
1 parent fe433a4 commit 39cc6ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/nuxt/src/core/runtime/nitro/renderer.ts
Expand Up @@ -21,7 +21,7 @@ export interface NuxtRenderHTMLContext {
htmlAttrs: string[]
head: string[]
bodyAttrs: string[]
bodyPreprend: string[]
bodyPrepend: string[]
body: string[]
bodyAppend: string[]
}
Expand Down Expand Up @@ -223,7 +223,7 @@ export default defineRenderHandler(async (event) => {
ssrContext.styles
]),
bodyAttrs: normalizeChunks([renderedMeta.bodyAttrs!]),
bodyPreprend: normalizeChunks([
bodyPrepend: normalizeChunks([
renderedMeta.bodyScriptsPrepend,
ssrContext.teleports?.body
]),
Expand Down Expand Up @@ -288,7 +288,7 @@ function renderHTMLDocument (html: NuxtRenderHTMLContext) {
return `<!DOCTYPE html>
<html ${joinAttrs(html.htmlAttrs)}>
<head>${joinTags(html.head)}</head>
<body ${joinAttrs(html.bodyAttrs)}>${joinTags(html.bodyPreprend)}${joinTags(html.body)}${joinTags(html.bodyAppend)}</body>
<body ${joinAttrs(html.bodyAttrs)}>${joinTags(html.bodyPrepend)}${joinTags(html.body)}${joinTags(html.bodyAppend)}</body>
</html>`
}

Expand Down

0 comments on commit 39cc6ae

Please sign in to comment.