Skip to content

Commit 1426437

Browse files
committed
fix: storobook assets
1 parent de86d52 commit 1426437

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.storybook/main.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ const config: StorybookConfig = {
1616
...(cfg.resolve || {}),
1717
dedupe: [...((cfg.resolve || {}).dedupe || []), "react", "react-dom"],
1818
};
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
19+
// If environment provides a base (e.g., for GitHub Pages project path), honor it
20+
if (process.env.STORYBOOK_BASE_HREF) {
21+
cfg.base = process.env.STORYBOOK_BASE_HREF;
22+
}
2123
return cfg;
2224
},
2325
};

0 commit comments

Comments
 (0)