Check out the Storybook section in the Developing the Sourcegraph web app docs.
Storybook configuration is set up as a pnpm workspace symlink.
Important commands are exposed via root package.json:
pnpm storybook
pnpm storybook:build# Load only a subset of stories to boost build performance.
STORIES_GLOB='client/web/src/**/*.story.tsx' pnpm start