Storybook Deployment Fix #8

Merged
an.di merged 3 commits from adilallo/bugfix/StorybookImageFix into adilallo/HeroBanner 2025-08-20 19:29:38 +00:00
Showing only changes of commit f3b0daa2c0 - Show all commits
+3 -1
View File
@@ -16,9 +16,11 @@ const config = {
options: {},
},
staticDirs: ["../public"],
managerHead: (head) => `${head}<base href="/communityrulestorybook/">`,
previewHead: (head) => `${head}<base href="/communityrulestorybook/">`,
async viteFinal(cfg) {
// IMPORTANT: Set base path for GitHub Pages sub-path hosting
cfg.base = "/CommunityRuleStorybook/";
cfg.base = "/communityrulestorybook/";
// Ensure esbuild treats .js as JSX during dep pre-bundling
cfg.optimizeDeps ??= {};