fastify-dx icon indicating copy to clipboard operation
fastify-dx copied to clipboard

Support <head> tag generation from SSR

Open babsonmatt opened this issue 2 years ago • 2 comments

Prerequisites

  • [X] I have written a descriptive issue title
  • [X] I have searched existing issues to ensure the issue has not already been raised

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!

babsonmatt avatar Jun 24 '22 02:06 babsonmatt

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.

galvez avatar Jun 24 '22 02:06 galvez

@galvez awesome, thank you!

babsonmatt avatar Jun 24 '22 14:06 babsonmatt