diff options
| -rw-r--r-- | package.json | 3 | ||||
| -rw-r--r-- | src/config.js | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/package.json b/package.json index 341a117..e322281 100644 --- a/package.json +++ b/package.json @@ -46,5 +46,6 @@ }, "devDependencies": { "serverless": "^1.44.1" - } + }, + "proxy": "https://imgs.geshem.space/" } 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'; |
