Getting a Hilla app SEO friendly/shareable

If I share any page of my site on facebook, no image or description et al are shown.

I have tried different ways to get the og:image and other tags into each page as soon/fast as possible, but cannot get facebook to find them in any way. They are all there when the page is done loading, but obviously not early enough for facebook catch them.

Has anyone solved this issue? I do not really know how to attack the problem.

I am using the pure Lit version of Hilla, so no React anywhere.

The IndexHtmlRequestListener approach described in Adding JSON-LD and Open Graph to Vaadin apps for link previews | Vaadin is valid also for Hilla applications.

Wohoo!

I have missed that blog-post. And it seems to be exactly what I am after.

Thank you Leif!