Update GraphQL and REST endpoints

This commit is contained in:
Dede Fuji Abdul 2024-02-27 11:52:50 +07:00
parent 6dfd82fa32
commit 2cc0a1fbce
2 changed files with 4 additions and 5 deletions

View File

@ -2,9 +2,9 @@ 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',
});

View File

@ -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
})