Skip to content

Commit e1f65c6

Browse files
authored
Fix auth in storybook (#152)
1 parent db1e3af commit e1f65c6

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

packages/apps/storybook/.storybook/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
"storybook-dark-mode/register",
1111
"@storybook/addon-links",
1212
"@storybook/addon-essentials",
13-
"@itwin/storybook-auth-addon",
13+
"../../../modules/storybook-auth-addon/register.js",
1414
"../src/addon/register.js",
1515
],
1616
reactOptions: { fastRefresh: true },
@@ -30,4 +30,5 @@ module.exports = {
3030
// Return the altered config
3131
return config;
3232
},
33+
staticDirs: ["../../../modules/storybook-auth-addon/build"]
3334
};

packages/apps/storybook/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
"webpack": "^5.28.0"
4949
},
5050
"scripts": {
51-
"start": "start-storybook -s ./node_modules/@itwin/storybook-auth-addon/build -p 6006",
51+
"start": "start-storybook -p 6006",
5252
"build": "",
53-
"test": "build-storybook -s ./node_modules/@itwin/storybook-auth-addon/build --loglevel error --quiet",
53+
"test": "build-storybook --loglevel error --quiet",
5454
"clean": "rimraf storybook-static"
5555
}
5656
}

0 commit comments

Comments
 (0)