fastify / fastify-dx

Archived
903 stars 43 forks source link

Support <head> tag generation from SSR #20

Open babsonmatt opened 2 years ago

babsonmatt commented 2 years ago

Prerequisites

Issue

Hello! I'm looking to check out fastify-dx but unsure with how to integrate with a UI library like mantine.dev. Any chance you could provide a little info on how to go about it? https://mantine.dev/theming/ssr/ has an example for generic integration with ssr.

Thanks in advance!

galvez commented 2 years ago

That's an interesting problem — that guide is targeted at frameworks that do <head> management at the SSR level.

Fastify DX sends out the <head> outside the SSR phase by default — but that can bet tweaked easily!

I'll work on an example.

babsonmatt commented 2 years ago

@galvez awesome, thank you!