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
| Product | URL |
|---|---|
| CMS | documentations.veegil.com/storybook/cms/ |
| EMS | documentations.veegil.com/storybook/ems/ |
| SR | documentations.veegil.com/storybook/sr/ |
Configuration
Each frontend has its own Storybook under .storybook/:
| App | basePath (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.