I simply want to add a script
block in the head
tag.
Example
<script>
alert('hello, world!');
</script>
I spent hours to figure out a solution for something as simple as this.
There are tons of answers about adding inline
scripts, but none for the script block
for Nuxt 3
How can we do this in Nuxt 3
?