Версия 0.4.3 Исправление пути для изображений в каточке зоны.
This commit is contained in:
parent
d4a6c17bdf
commit
086c0b0ae9
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "lawn-mowing-scheduler",
|
"name": "lawn-mowing-scheduler",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.4.2",
|
"version": "0.4.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "concurrently \"npm run server\" \"npm run client\"",
|
"dev": "concurrently \"npm run server\" \"npm run client\"",
|
||||||
|
@ -10,7 +10,8 @@ interface ZoneCardProps {
|
|||||||
onDelete: (id: number) => void;
|
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> = ({
|
const ZoneCard: React.FC<ZoneCardProps> = ({
|
||||||
zone,
|
zone,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user