diff options
Diffstat (limited to 'src/config.js')
| -rw-r--r-- | src/config.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config.js b/src/config.js index 6218cf8..d86264b 100644 --- a/src/config.js +++ b/src/config.js @@ -1,6 +1,8 @@ -const DEVELOPMENT = process.env.NODE_ENV === "development"; +const hostname = window && window.location && window.location.hostname; -const IMAGES_BASE_URL = DEVELOPMENT ? "" : "https://imgs.geshem.space"; +const PRODUCTION = hostname.includes("geshem.space"); + +const IMAGES_BASE_URL = PRODUCTION ? "https://imgs.geshem.space" : ""; const MAPBOX_ACCESS_TOKEN = "pk.eyJ1IjoieXV2YWRtIiwiYSI6ImNpcnMxbzBuaTAwZWdoa25oczlzZmkwbHcifQ.UHtLngbKm9O8945pJm23Nw"; |
