Skip to content

jcarlson/sb-next-vite-fonts

Repository files navigation

Next.js + Fonts + Storybook + Vite

This repository demonstrates an issue with Storybook and Next.js when loading custom fonts via a shared library package.

This repository also uses a monorepo layout:

.
├── apps
│   ├── storybook   # <-- The Storybook app
│   │   └── ...
│   └── www         # <-- The Next.js app, omitted for brevity
│       └── ...
└── packages
    └── ui          # <-- The shared library package that loads the fonts
        └── lib
            └── fonts.ts

To reproduce the issue:

pnpm install
cd apps/storybook
pnpm run storybook

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published