Fix Storybook fonts

This commit is contained in:
adilallo committed 2025-08-21 20:10:46 -06:00
1 parent 5f06b31428
commit a8f17cc6c7
3 files changed
+44 -4

No files matched your search

-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 ??= {};