Skip to content

Commit 17f2010

Browse files
committed
chore: 🔧 Adicionado config do vite no storybook
1 parent 6701f39 commit 17f2010

File tree

1 file changed

+7
-0
lines changed
  • documentations/react/.storybook

1 file changed

+7
-0
lines changed

documentations/react/.storybook/main.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,12 @@ const config: StorybookConfig = {
2525
name: getAbsolutePath("@storybook/react-vite"),
2626
options: {},
2727
},
28+
viteFinal: (config, { configType }) => {
29+
if (configType === "PRODUCTION") {
30+
config.base = "/05-design-system/";
31+
}
32+
33+
return config;
34+
},
2835
};
2936
export default config;

0 commit comments

Comments
 (0)