Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set meta tags dynamically #83

Open
s04v opened this issue Sep 3, 2024 · 0 comments
Open

Set meta tags dynamically #83

s04v opened this issue Sep 3, 2024 · 0 comments

Comments

@s04v
Copy link

s04v commented Sep 3, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant