Skip to content

Commit

Permalink
fix: add subpath to storybook on production
Browse files Browse the repository at this point in the history
  • Loading branch information
robsonnatanael committed Oct 20, 2023
1 parent 2f64774 commit 25467b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/docs/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,11 @@ const config: StorybookConfig = {
docs: {
autodocs: true,
},
viteFinal: (config, { configType }) => {
if (configType === 'PRODUCTION') {
config.base = "/design-system/";
}
return config;
}
};
export default config;

0 comments on commit 25467b5

Please sign in to comment.