From c3f9d79bd3d8b374ea944dfc83d76b57ace1bdec Mon Sep 17 00:00:00 2001 From: Marvine Bamba Date: Sat, 9 Nov 2024 03:31:47 +0100 Subject: [PATCH] fix: mock to be used in prod --- README.md | 2 ++ src/main.tsx | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 89d3b18..c75002a 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ This is an example of the work surface with union/intersect and state management. Feel free to use it as you want +### [Demo link ](https://672ecab0a9cb37980aeca3da--visionary-chaja-1e64c7.netlify.app/) + ```sh > git clone https://github.com/Marvine89/work-surface-state-management.git ``` diff --git a/src/main.tsx b/src/main.tsx index a5301dc..c087610 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -6,7 +6,6 @@ import { Provider } from 'react-redux'; import { appStore } from '@states/store'; async function prepareMock() { - if (process.env.NODE_ENV !== 'development') return; const { initMockAPI } = await import('./mocks/server'); return initMockAPI(); }