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

Commit b60f136

Browse files
refactor(nuxt)!: fix typo for NuxtRenderHTMLContext.bodyPrepend (#8712)
1 parent 2376c11 commit b60f136

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/nuxt/src/core/runtime/nitro/renderer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface NuxtRenderHTMLContext {
2121
htmlAttrs: string[]
2222
head: string[]
2323
bodyAttrs: string[]
24-
bodyPreprend: string[]
24+
bodyPrepend: string[]
2525
body: string[]
2626
bodyAppend: string[]
2727
}
@@ -223,7 +223,7 @@ export default defineRenderHandler(async (event) => {
223223
ssrContext.styles
224224
]),
225225
bodyAttrs: normalizeChunks([renderedMeta.bodyAttrs!]),
226-
bodyPreprend: normalizeChunks([
226+
bodyPrepend: normalizeChunks([
227227
renderedMeta.bodyScriptsPrepend,
228228
ssrContext.teleports?.body
229229
]),
@@ -288,7 +288,7 @@ function renderHTMLDocument (html: NuxtRenderHTMLContext) {
288288
return `<!DOCTYPE html>
289289
<html ${joinAttrs(html.htmlAttrs)}>
290290
<head>${joinTags(html.head)}</head>
291-
<body ${joinAttrs(html.bodyAttrs)}>${joinTags(html.bodyPreprend)}${joinTags(html.body)}${joinTags(html.bodyAppend)}</body>
291+
<body ${joinAttrs(html.bodyAttrs)}>${joinTags(html.bodyPrepend)}${joinTags(html.body)}${joinTags(html.bodyAppend)}</body>
292292
</html>`
293293
}
294294

0 commit comments

Comments
 (0)