fix(nuxt3): update meta return type to bodyScriptsPrepend (#3257)

This commit is contained in:
Daniel Roe 2022-02-16 17:56:30 +00:00 committed by GitHub
parent 4cd931e5ea
commit 3fccbfa252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ type NuxtMeta = {
headAttrs?: string
bodyAttrs?: string
headTags?: string
bodyPrepend?: string
bodyScriptsPrepend?: string
bodyScripts?: string
}

View File

@ -30,7 +30,7 @@ export default defineNuxtPlugin((nuxtApp) => {
headAttrs: nuxtApp.ssrContext.teleports.headAttrs || '',
bodyAttrs: nuxtApp.ssrContext.teleports.bodyAttrs || '',
headTags: nuxtApp.ssrContext.teleports.head || '',
bodyPrepend: nuxtApp.ssrContext.teleports['body-prepend'] || '',
bodyScriptsPrepend: nuxtApp.ssrContext.teleports['body-prepend'] || '',
bodyScripts: nuxtApp.ssrContext.teleports.body || ''
}
}