diff --git a/packages/ui/.storybook/main.ts b/packages/ui/.storybook/main.ts index 030cfb4e0..148a8563f 100644 --- a/packages/ui/.storybook/main.ts +++ b/packages/ui/.storybook/main.ts @@ -4,7 +4,11 @@ import { mergeConfig, UserConfig } from 'vite'; import { imagetools } from 'vite-imagetools'; import { resolve, dirname } from 'path'; -import fonts from '../build/preloaded-fonts.json'; +import { readdirSync } from 'fs'; + +const fonts = readdirSync(`../static/public/fonts/preload`).map((font) => { + return `/fonts/preload/${font}`; +}); const config: StorybookConfig = { viteFinal: (config, { configType }) =>