From b60f1364c5d89d047b2dfdf0f50922d261fce6a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ag=C3=A9nor=20Debriat?= Date: Mon, 7 Nov 2022 11:29:41 +0100 Subject: [PATCH] refactor(nuxt)!: fix typo for `NuxtRenderHTMLContext.bodyPrepend` (#8712) --- packages/nuxt/src/core/runtime/nitro/renderer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nuxt/src/core/runtime/nitro/renderer.ts b/packages/nuxt/src/core/runtime/nitro/renderer.ts index 6109d6c79d..51a6a12ce9 100644 --- a/packages/nuxt/src/core/runtime/nitro/renderer.ts +++ b/packages/nuxt/src/core/runtime/nitro/renderer.ts @@ -21,7 +21,7 @@ export interface NuxtRenderHTMLContext { htmlAttrs: string[] head: string[] bodyAttrs: string[] - bodyPreprend: string[] + bodyPrepend: string[] body: string[] bodyAppend: string[] } @@ -223,7 +223,7 @@ export default defineRenderHandler(async (event) => { ssrContext.styles ]), bodyAttrs: normalizeChunks([renderedMeta.bodyAttrs!]), - bodyPreprend: normalizeChunks([ + bodyPrepend: normalizeChunks([ renderedMeta.bodyScriptsPrepend, ssrContext.teleports?.body ]), @@ -288,7 +288,7 @@ function renderHTMLDocument (html: NuxtRenderHTMLContext) { return ` ${joinTags(html.head)} -${joinTags(html.bodyPreprend)}${joinTags(html.body)}${joinTags(html.bodyAppend)} +${joinTags(html.bodyPrepend)}${joinTags(html.body)}${joinTags(html.bodyAppend)} ` }