Skip to content

Commit

Permalink
merge pull request #2 from ignite-projects/develop
Browse files Browse the repository at this point in the history
fix: add subpath to storybook on production
  • Loading branch information
robsonnatanael authored Oct 20, 2023
2 parents 3e3a880 + 25467b5 commit 7c999b9
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 7c999b9

Please sign in to comment.