From bae8f3a2d5a9999152bacfef204849785dcf2fa2 Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Wed, 20 Apr 2022 13:30:12 +0300 Subject: [PATCH] fix: enable mocks in SB build --- src/utils/storybook/decorators.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' })