Base name reconfiguration
This commit is contained in:
+3
-1
@@ -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 ??= {};
|
||||||
|
|||||||
Reference in New Issue
Block a user