fix: graphql server path

This commit is contained in:
Sérgio Salgado 2022-03-31 20:01:22 +01:00 committed by José Oliveira
parent 822efaeaea
commit 28924c059d

View file

@ -12,7 +12,10 @@ import AppContext from 'src/AppContext'
const URI = const URI =
process.env.NODE_ENV === 'development' ? 'https://localhost:8070' : '' 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({ const uploadLink = createUploadLink({
credentials: 'include', credentials: 'include',