Base name reconfiguration

This commit is contained in:
adilallo
2025-08-20 13:03:47 -06:00
parent e871c9de4b
commit f3b0daa2c0
+3 -1
View File
@@ -16,9 +16,11 @@ const config = {
options: {}, options: {},
}, },
staticDirs: ["../public"], staticDirs: ["../public"],
managerHead: (head) => `${head}<base href="/communityrulestorybook/">`,
previewHead: (head) => `${head}<base href="/communityrulestorybook/">`,
async viteFinal(cfg) { async viteFinal(cfg) {
// IMPORTANT: Set base path for GitHub Pages sub-path hosting // 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 // Ensure esbuild treats .js as JSX during dep pre-bundling
cfg.optimizeDeps ??= {}; cfg.optimizeDeps ??= {};