Версия 0.4.3 Исправление пути для изображений в каточке зоны.

This commit is contained in:
anibilag 2025-07-14 22:49:07 +03:00
parent d4a6c17bdf
commit 086c0b0ae9
2 changed files with 3 additions and 2 deletions

View File

@ -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\"",

View File

@ -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<ZoneCardProps> = ({
zone,