diff --git a/src/utils/storybook/decorators.tsx b/src/utils/storybook/decorators.tsx index 5537039..4e027d7 100644 --- a/src/utils/storybook/decorators.tsx +++ b/src/utils/storybook/decorators.tsx @@ -22,7 +22,7 @@ import { apolloClient } from '../apollo'; // ------------------------------------------- -if (process.env.NODE_ENV === 'development') { +if (process.env.REACT_APP_ENABLE_MOCKS) { worker.start({ onUnhandledRequest: 'bypass' })