diff --git a/package.json b/package.json index f8d5421..b7956c8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lawn-mowing-scheduler", "private": true, - "version": "0.4.3", + "version": "0.4.4", "type": "module", "scripts": { "dev": "concurrently \"npm run server\" \"npm run client\"", diff --git a/src/components/ZoneCard.tsx b/src/components/ZoneCard.tsx index b0099ea..cb668c8 100644 --- a/src/components/ZoneCard.tsx +++ b/src/components/ZoneCard.tsx @@ -34,7 +34,6 @@ const ZoneCard: React.FC = ({ }; const getStatusText = (zone: Zone) => { - console.log(zone); if (zone.isNew) { return 'Еще не косилась'; } else if (zone.isOverdue) { diff --git a/src/components/ZoneForm.tsx b/src/components/ZoneForm.tsx index e885741..8c46d3f 100644 --- a/src/components/ZoneForm.tsx +++ b/src/components/ZoneForm.tsx @@ -9,7 +9,8 @@ interface ZoneFormProps { onCancel: () => 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 ZoneForm: React.FC = ({ zone, onSubmit, onCancel }) => { const [formData, setFormData] = useState({