Skip to content

Commit

Permalink
fix build:msw correct env
Browse files Browse the repository at this point in the history
  • Loading branch information
lkleuver authored and praseodym committed May 17, 2024
1 parent 7005bd8 commit d61ba2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/app/module/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function HomePage() {
</li>
</ul>

<MockTest />
{process.env.MSW && <MockTest />}
</div>
);
}
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dev": "API_MODE=mock vite",
"dev:server": "API_MODE=local vite",
"build": "tsc && vite build",
"build:msw": "API_MODE=msw vite build && cp mockServiceWorker.js dist/",
"build:msw": "API_MODE=mock vite build && cp mockServiceWorker.js dist/",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"test": "vitest ",
Expand Down

0 comments on commit d61ba2b

Please sign in to comment.