diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2aba52a..ad6ef6fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,5 +42,7 @@ jobs: with: ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} BRANCH: gh-pages - FOLDER: dist + FOLDER: dist + CLEAN: true + diff --git a/src/main.tsx b/src/main.tsx index 5fe40585..3e3c0ba5 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -45,10 +45,9 @@ const queryClient = new QueryClient({ }); // start service worker mock in development mode -if (import.meta.env.MODE === 'development') { - const { worker } = await import('./_mock'); - await worker.start({ onUnhandledRequest: 'bypass' }); -} +// if (import.meta.env.MODE === 'development') { //... } +const { worker } = await import('./_mock'); +await worker.start({ onUnhandledRequest: 'bypass' }); const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);