fix: graphql server path
This commit is contained in:
parent
822efaeaea
commit
28924c059d
1 changed files with 4 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue