SolidJSS
SolidJS3y ago
lastq

Solidjs site metadata (title, description, meta image etc.) in Javascript

I'm having difficulty with setting up metadata. My site is purely client side. When I use @solidjs/meta and publish the site, the metadata all appears to be null as seen here: https://www.heymeta.com/url/solidjs-bizcard.pages.dev/

I have been able to get successful metadata in the past by hardcoding it into the index.html file in the root folder. Such as with this page: https://www.heymeta.com/url/removeyoutube.pages.dev/. This is not ideal, I would like to be able to encode these in the jsx files so that I can populate them from a javascript object as a single source of truth from which other components draw.

Is this currently possible with Solidjs?
Check and improve how search engines and social media websites see and display your website.
Was this page helpful?