Fix Storybook fonts

This commit is contained in:
adilallo
2025-08-21 20:10:46 -06:00
parent 5f06b31428
commit a8f17cc6c7
3 changed files with 44 additions and 4 deletions
-4
View File
@@ -16,11 +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 ??= {};