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
felipprodrigues committed Oct 10, 2023
1 parent b1b5ee2 commit fc4bf63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/docs/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,12 @@ 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 fc4bf63

Please sign in to comment.