diff --git a/new-lamassu-admin/src/utils/apollo.js b/new-lamassu-admin/src/utils/apollo.js index 022cec4a..8b28843f 100644 --- a/new-lamassu-admin/src/utils/apollo.js +++ b/new-lamassu-admin/src/utils/apollo.js @@ -12,7 +12,10 @@ import AppContext from 'src/AppContext' const URI = process.env.NODE_ENV === 'development' ? 'https://localhost:8070' : '' -const ALT_URI = 'http://localhost:4001' +const ALT_URI = + process.env.NODE_ENV === 'development' + ? 'https://localhost:4001' + : `https://${window.location.hostname}:4001` const uploadLink = createUploadLink({ credentials: 'include',