Skip to content

Commit

Permalink
fixing domain subpath for Storybook deploy on github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
brenocastelo committed Dec 14, 2022
1 parent 3ce877b commit 51cf9a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/docs/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,11 @@ module.exports = {
features: {
storyStoreV7: true,
},
viteFinal: (config, { configType }) => {
if (configType === 'PRODUCTION') {
config.base = '/design-system';
}

return config;
},
};

0 comments on commit 51cf9a0

Please sign in to comment.