We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de86d52 commit 1426437Copy full SHA for 1426437
.storybook/main.ts
@@ -16,8 +16,10 @@ const config: StorybookConfig = {
16
...(cfg.resolve || {}),
17
dedupe: [...((cfg.resolve || {}).dedupe || []), "react", "react-dom"],
18
};
19
- // Note: When using GitHub Actions deploy, base path is set automatically by actions/configure-pages
20
- // No need to manually set cfg.base here
+ // If environment provides a base (e.g., for GitHub Pages project path), honor it
+ if (process.env.STORYBOOK_BASE_HREF) {
21
+ cfg.base = process.env.STORYBOOK_BASE_HREF;
22
+ }
23
return cfg;
24
},
25
0 commit comments