Skip to content

Commit 25467b5

Browse files
fix: add subpath to storybook on production
1 parent 2f64774 commit 25467b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/docs/.storybook/main.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,11 @@ const config: StorybookConfig = {
2828
docs: {
2929
autodocs: true,
3030
},
31+
viteFinal: (config, { configType }) => {
32+
if (configType === 'PRODUCTION') {
33+
config.base = "/design-system/";
34+
}
35+
return config;
36+
}
3137
};
3238
export default config;

0 commit comments

Comments
 (0)