@@ -4,6 +4,7 @@ import { transpileExclude, getLoaders } from '../webpack/webpack.config.client';
44import { saveStories } from '../scripts/gen-stories/get-stories.mjs' ;
55import type { StorybookConfig } from '@storybook/react-webpack5' ;
66import { svgr } from '../webpack/svg.cjs' ;
7+ import process from 'node:process' ;
78
89// Generate dynamic Card and Layout stories
910saveStories ( ) ;
@@ -14,7 +15,6 @@ const config: StorybookConfig = {
1415 backgrounds : true ,
1516 controls : true ,
1617 viewport : true ,
17- toolbars : true ,
1818 } ,
1919
2020 stories : [
@@ -32,7 +32,6 @@ const config: StorybookConfig = {
3232 addons : [
3333 '@storybook/addon-webpack5-compiler-swc' ,
3434 '@storybook/addon-docs' ,
35- '@storybook/addon-a11y' ,
3635 '@storybook/addon-backgrounds' ,
3736 ] ,
3837
@@ -55,8 +54,9 @@ const config: StorybookConfig = {
5554 // e.g process?.env?.SOME_VAR
5655 config . plugins ?. push (
5756 new webpack . DefinePlugin ( {
58- process : JSON . stringify ( {
59- env : { SDC_URL : process . env . SDC_URL } ,
57+ 'process.env' : JSON . stringify ( {
58+ SDC_URL : process . env . SDC_URL ,
59+ HOSTNAME : process . env . HOSTNAME ?? 'localhost' ,
6060 } ) ,
6161 } ) ,
6262 // We rely on Buffer for our bridget thrift client
0 commit comments