Update Storybook configuration and readme

This commit is contained in:
adilallo
2025-08-21 09:06:20 -06:00
parent b98fb11833
commit b284cbd385
7 changed files with 127 additions and 90 deletions
-5
View File
@@ -16,12 +16,7 @@ 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/";
// Ensure esbuild treats .js as JSX during dep pre-bundling
cfg.optimizeDeps ??= {};
cfg.optimizeDeps.esbuildOptions ??= {};