File tree Expand file tree Collapse file tree 2 files changed +29
-18
lines changed Expand file tree Collapse file tree 2 files changed +29
-18
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ export default {
2
+ stories : [ "../src/**/*.stories.tsx" ] ,
3
+
4
+ addons : [
5
+ "@chromatic-com/storybook" ,
6
+ "@storybook/addon-docs" ,
7
+ "@storybook/addon-links" ,
8
+ "@storybook/addon-themes" ,
9
+ "storybook-addon-remix-react-router" ,
10
+ ] ,
11
+
12
+ staticDirs : [ "../static" ] ,
13
+
14
+ framework : {
15
+ name : "@storybook/react-vite" ,
16
+ options : { } ,
17
+ } ,
18
+
19
+ async viteFinal ( config ) {
20
+ // Storybook seems to strip this setting out of our Vite config. We need to
21
+ // put it back in order to be able to access Storybook with Coder Desktop or
22
+ // port sharing.
23
+ config . server = {
24
+ ...config . server ,
25
+ allowedHosts : [ ".coder" , ".dev.coder.com" ] ,
26
+ } ;
27
+ return config ;
28
+ } ,
29
+ } satisfies import ( "@storybook/react-vite" ) . StorybookConfig ;
You can’t perform that action at this time.
0 commit comments