File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 3232 run : npm ci
3333
3434 - name : Build Storybook
35- run : npx storybook build --base-path /ui-kit -- output-dir ./storybook-static
35+ run : npx storybook build --output-dir ./storybook-static
3636
3737 - uses : actions/configure-pages@v5
3838
Original file line number Diff line number Diff line change 11import type { StorybookConfig } from "@storybook/react-vite" ;
2+ import type { InlineConfig } from "vite" ;
23
34const config : StorybookConfig = {
45 stories : [
@@ -14,6 +15,10 @@ const config: StorybookConfig = {
1415 docs : {
1516 defaultName : "Docs" ,
1617 } ,
18+ viteFinal : ( config : InlineConfig ) => {
19+ config . base = "/ui-kit/" ;
20+ return config ;
21+ } ,
1722} ;
1823
1924export default config ;
Original file line number Diff line number Diff line change 99 "build-storybook" : " storybook build" ,
1010 "typecheck" : " tsc --noEmit" ,
1111 "build" : " vite build" ,
12- "predeploy" : " storybook build --base-path /ui-kit -- output-dir ./storybook-static" ,
12+ "predeploy" : " storybook build --output-dir ./storybook-static" ,
1313 "deploy" : " gh-pages -d storybook-static"
1414 },
1515 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments