Skip to content

Fix Stratakit storybook icons when built#216

Merged
alexdunae merged 3 commits into
mainfrom
alex/fix-stratakit-storybook-icons
Jun 18, 2026
Merged

Fix Stratakit storybook icons when built#216
alexdunae merged 3 commits into
mainfrom
alex/fix-stratakit-storybook-icons

Conversation

@alexdunae

Copy link
Copy Markdown
Contributor

Built Storybook is not rendering Stratakit's SVG icons when deployed to Github pages due to the /admin-components-react/ path.

This PR removes publicPath so Storybook can be built and deployed in any directory.

Built Storybook was not rendering Stratakit's SVG icons when deployed to Github pages due to the `/admin-components-react/` path.

This PR removes `publicPath` so Storybook can be built and deployed in any directory.
@alexdunae alexdunae marked this pull request as ready for review June 17, 2026 18:04
@alexdunae alexdunae enabled auto-merge (squash) June 17, 2026 18:05
@veekeys

veekeys commented Jun 18, 2026

Copy link
Copy Markdown
Member

Why strata icons cannot be rendered in subpaths? Does it mean hosting apps will have similar problems?
Not sure what hosting URL has to do with rendering simple SVGs..

@alexdunae alexdunae merged commit d24c7d9 into main Jun 18, 2026
5 checks passed
@alexdunae alexdunae deleted the alex/fix-stratakit-storybook-icons branch June 18, 2026 14:03
@alexdunae

Copy link
Copy Markdown
Contributor Author

Why strata icons cannot be rendered in subpaths?

They definitely can ben

Does it mean hosting apps will have similar problems? Not sure what hosting URL has to do with rendering simple SVGs..

This is just a Storybook-specific setting for SVGs added recently by me. It incorrectly assumed Storybook always ran in root. It won't affect icons (or anything) outside of Storybook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants