summaryrefslogtreecommitdiff
path: root/src/config.tsx
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2022-08-29 10:24:51 +0300
committerYuval Adam <_@yuv.al>2022-08-29 10:24:51 +0300
commit44a1c5b7e62e83af4d670e011f5998b9b8aedfef (patch)
tree4ad1299c0f5ba83a6d7783bdc0d6d649c037072b /src/config.tsx
parent5e346930cb9e0672e15fbda4621a9b72e8b072e4 (diff)
Update all .tsx files and remove unused
Diffstat (limited to 'src/config.tsx')
-rw-r--r--src/config.tsx17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/config.tsx b/src/config.tsx
new file mode 100644
index 0000000..f74382c
--- /dev/null
+++ b/src/config.tsx
@@ -0,0 +1,17 @@
+const hostname = window && window.location && window.location.hostname;
+
+const PRODUCTION = hostname.includes("geshem");
+
+const IMAGES_BASE_URL = PRODUCTION ? "https://imgs.geshem.space" : "";
+
+const MAPBOX_ACCESS_TOKEN =
+ "pk.eyJ1IjoieXV2YWRtIiwiYSI6ImNpcnMxbzBuaTAwZWdoa25oczlzZmkwbHcifQ.UHtLngbKm9O8945pJm23Nw";
+
+const IMAGE_COORDINATES = [
+ [31.7503896894, 34.4878044232],
+ [37.8574239563, 34.5078463729],
+ [37.7157066403, 29.4538271687],
+ [31.9347389087, 29.4373462909]
+];
+
+module.exports = { IMAGES_BASE_URL, MAPBOX_ACCESS_TOKEN, IMAGE_COORDINATES };