Merge branch 'dev-defuj' of https://github.com/defuj/eis into development
This commit is contained in:
@@ -2,12 +2,10 @@
|
||||
import { ApolloClient, createHttpLink, InMemoryCache } from '@apollo/client/core'
|
||||
|
||||
export const apolloClient = () => {
|
||||
|
||||
const httpLink = createHttpLink({
|
||||
uri: 'http://10.1.50.173:32180/graphql',
|
||||
credentials: 'include', // Include credentials for cross-origin requests
|
||||
});
|
||||
|
||||
const httpLink = createHttpLink({
|
||||
uri: import.meta.env.VITE_APP_GRAPHQL_ENDPOINT,
|
||||
credentials: 'include' // Include credentials for cross-origin requests
|
||||
})
|
||||
|
||||
const apolloClient = new ApolloClient({
|
||||
cache: new InMemoryCache(),
|
||||
@@ -17,9 +15,9 @@ export const apolloClient = () => {
|
||||
'Accept-Encoding': 'gzip, deflate',
|
||||
'Cache-Control': 'no-cache',
|
||||
Connection: 'keep-alive',
|
||||
'Content-Type': 'application/json',
|
||||
'Content-Type': 'application/json'
|
||||
// Add other headers as needed
|
||||
},
|
||||
});
|
||||
return apolloClient;
|
||||
}
|
||||
}
|
||||
})
|
||||
return apolloClient
|
||||
}
|
||||
|
Reference in New Issue
Block a user