Base name reconfiguration
This commit is contained in:
1 parent
e871c9de4b
commit
f3b0daa2c0
1 file changed
+3
-1
+3
-1
@@ -16,9 +16,11 @@ 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/";
|
||||
cfg.base = "/communityrulestorybook/";
|
||||
|
||||
// Ensure esbuild treats .js as JSX during dep pre-bundling
|
||||
cfg.optimizeDeps ??= {};
|
||||
|
||||
Reference in new issue
Block a user