Skip to main content

Storybook

Storybook hosts the UI component catalogs for each frontend. It is not used for backend API documentation — use Swagger on the API services for that.

Production URLs

ProductURL
CMSdocumentations.veegil.com/storybook/cms/
EMSdocumentations.veegil.com/storybook/ems/
SRdocumentations.veegil.com/storybook/sr/

Configuration

Each frontend has its own Storybook under .storybook/:

AppbasePath (build-time)
CMS/storybook/cms/
EMS/storybook/ems/
SR/storybook/sr/

Ingress on documentations.veegil.com routes these paths to the matching service in namespace platform-doc. Static builds are served by nginx inside the cluster.

Adding stories

Place *.stories.jsx next to the component (or under src/stories/). Wrap Redux- or router-dependent components using decorators in .storybook/preview.jsx.

Rebuild and deploy via the release/* pipeline in each frontend repo (infra/gitlab-ci.storybook.yml). Docusaurus deploys from the platform-docs repo.