Skip to content

Commit

Permalink
fix(nuxt3): update meta return type to bodyScriptsPrepend (nuxt#3257)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Feb 16, 2022
1 parent 4cd931e commit 3fccbfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nuxt3/src/app/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type NuxtMeta = {
headAttrs?: string
bodyAttrs?: string
headTags?: string
bodyPrepend?: string
bodyScriptsPrepend?: string
bodyScripts?: string
}

Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt3/src/meta/runtime/lib/vue-meta.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || ''
}
}
Expand Down

0 comments on commit 3fccbfa

Please sign in to comment.