From d02114a79dd20114d1c06979cfceb649ac1b972e Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Mon, 23 Sep 2024 13:09:39 +0200
Subject: Cleanup lots of typescript and ref issues

---
 app/components/config.tsx | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'app/components/config.tsx')

diff --git a/app/components/config.tsx b/app/components/config.tsx
index 4dc3d6a..f69143d 100644
--- a/app/components/config.tsx
+++ b/app/components/config.tsx
@@ -1,13 +1,11 @@
-const hostname = window !== undefined && window.location && window.location.hostname;
-
-const PRODUCTION = hostname && hostname.includes("geshem");
+const PRODUCTION = process.env.NODE_ENV == "production";
 
 export const IMAGES_BASE_URL = PRODUCTION ? "https://imgs.geshem.space" : "";
 
 export const MAPBOX_ACCESS_TOKEN =
   "pk.eyJ1IjoieXV2YWRtIiwiYSI6ImNpcnMxbzBuaTAwZWdoa25oczlzZmkwbHcifQ.UHtLngbKm9O8945pJm23Nw";
 
-export const IMAGE_COORDINATES = [
+export const IMAGE_COORDINATES: [[number, number], [number, number], [number, number], [number, number]] = [
   [31.7503896894, 34.4878044232],
   [37.8574239563, 34.5078463729],
   [37.7157066403, 29.4538271687],
-- 
cgit v1.3.1

