Skip to content

Set meta tags dynamically #83

Description

@s04v

I want to set a meta tag from information retrieved from an external backend. I use getServerSideProps where I share the fetch, but then useInlineHeadAsset does not insert the tags directly into the head, but does it via js. Here is an example

<script nonce=‘hs-random-nonce’> document.head.innerHTML += \<meta property=‘og:image’ content=‘url’/>; </script

Is there any solution to this problem or is there any other way to add meta tag dynamically?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions