N
Nuxt17mo ago
oemer

How to add a script tag dynamically on the server inside a plugin?

I am trying it like this:
export default defineNuxtPlugin((nuxt)=> {
nuxt.hook("app:rendered", (renderContext) => {
renderContext.???.head.script.push()
})
}
export default defineNuxtPlugin((nuxt)=> {
nuxt.hook("app:rendered", (renderContext) => {
renderContext.???.head.script.push()
})
}
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server