Skip to content

Commit 3577611

Browse files
committed
chore: allow all hosts in storybook vite dev server
1 parent f1d480c commit 3577611

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

system/storybook-config/src/vite.storybook.main.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ const config = {
1212
core: {
1313
builder: '@storybook/builder-vite',
1414
},
15+
16+
viteFinal: config => {
17+
config.server ??= {}
18+
config.server.allowedHosts = true
19+
return config
20+
},
1521
} satisfies StorybookConfig
1622

1723
export default config

0 commit comments

Comments
 (0)