[231229] Storybook 이미지 깨지는 오류
Storybook 이미지 깨지는 오류
- 스토리북 이미지 깨지는 오류 발생
- main.js 에서 assets 이 있는 디렉토리를 지정해주어야한다.
import type { StorybookConfig } from "@storybook/your-framework"
const config: StorybookConfig = {
framework: "@storybook/your-framework",
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
staticDirs: ["../public"], //👈 Configures the static asset folder in Storybook
}
export default config
Leave a comment