feat: add story for `@nuxt/fonts` module
🔗 Linked issue
#820
Supersedes #921 because I'm a moron and made my changes to main on a auto-deleted codespace 😅
📚 Description
This PR adds a NuxtFonts component and a story to check if the @nuxt/fonts module is working correctly inside Storybook. At the moment, IT DOES NOT.
It also adds a /modules/fonts route to test the module is working correctly inside the app which IT DOES.
Deploy request for nuxt-storybook pending review.
Visit the deploys page to approve it
| Name | Link |
|---|---|
| Latest commit | bbc9f2cd96102e8295e08da4c5698ae2c0eaab0f |
@tobiasdiez everything seems to be working ok on my end (both with nuxt and storybook dev).
Not sure why Showcase doesn't show the fonts on the only link I can see. Maybe fonts aren't being deployed as part of storybook standalone?
Solution only works for the default path: https://fonts.nuxt.com/get-started/configuration#assets
Should we add a mention in the docs? Make it configurable? Try to re-use the user provided config for the fonts module?
EDIT: Sorry it took me a while to get to this, I've been busy and I finally managed to make some time to look into this solution I had in my head for a while haha