Update GraphQL and REST endpoints
This commit is contained in:
parent
6dfd82fa32
commit
2cc0a1fbce
@ -3,8 +3,8 @@ 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
|
||||
uri: import.meta.env.VITE_APP_GRAPHQL_ENDPOINT,
|
||||
credentials: 'include',
|
||||
});
|
||||
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
import axios from 'axios'
|
||||
const url = 'http://10.1.50.173:32181'
|
||||
const url = import.meta.env.VITE_APP_REST_ENDPOINT as string
|
||||
const instance = axios.create({
|
||||
// baseURL: 'http://192.168.1.84:32180'
|
||||
baseURL: url
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user