From 086c0b0ae986a6f4821d437807460fca1e116d52 Mon Sep 17 00:00:00 2001 From: anibilag Date: Mon, 14 Jul 2025 22:49:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B5=D1=80=D1=81=D0=B8=D1=8F=200.4.3=20?= =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D1=83=D1=82=D0=B8=20=D0=B4=D0=BB=D1=8F=20=D0=B8?= =?UTF-8?q?=D0=B7=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B9=20?= =?UTF-8?q?=D0=B2=20=D0=BA=D0=B0=D1=82=D0=BE=D1=87=D0=BA=D0=B5=20=D0=B7?= =?UTF-8?q?=D0=BE=D0=BD=D1=8B.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/ZoneCard.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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,