diff --git a/package.json b/package.json index 2b6da83..f8d5421 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lawn-mowing-scheduler", "private": true, - "version": "0.4.2", + "version": "0.4.3", "type": "module", "scripts": { "dev": "concurrently \"npm run server\" \"npm run client\"", diff --git a/src/components/ZoneCard.tsx b/src/components/ZoneCard.tsx index 14d0305..b0099ea 100644 --- a/src/components/ZoneCard.tsx +++ b/src/components/ZoneCard.tsx @@ -10,7 +10,8 @@ interface ZoneCardProps { onDelete: (id: number) => void; } -const API_BASE = import.meta.env.VITE_API_URL; +const APP_MODE = import.meta.env.VITE_ENV; +const API_BASE = APP_MODE == "development" ? import.meta.env.VITE_API_URL : ""; const ZoneCard: React.FC = ({ zone,