diff options
| author | Yuval Adam <_@yuv.al> | 2019-10-16 20:05:05 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2019-10-16 20:05:05 +0300 |
| commit | 99c8d0d1fdd32bae90d8c766c542cc06891e088d (patch) | |
| tree | 9d28706f8978070444338d77c4987abe5c23d730 /src | |
| parent | 20d1763aff2c401d3d53fec7e9cfd0278f51016c (diff) | |
Proxy imgs.json in development to avoid CORS issues
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.js b/src/config.js index 83f0192..bf8a508 100644 --- a/src/config.js +++ b/src/config.js @@ -1,4 +1,6 @@ -const IMAGES_BASE_URL = 'https://imgs.geshem.space' +const DEVELOPMENT = process.env.NODE_ENV === "development"; + +const IMAGES_BASE_URL = DEVELOPMENT ? '' : 'https://imgs.geshem.space'; const MAPBOX_ACCESS_TOKEN = 'pk.eyJ1IjoieXV2YWRtIiwiYSI6ImNpcnMxbzBuaTAwZWdoa25oczlzZmkwbHcifQ.UHtLngbKm9O8945pJm23Nw'; |
