Skip to content

Commit 9cef164

Browse files
author
Thibaud Brault
committed
Revert ":art: add default value for graphql and rest endpoints in front"
This reverts commit 8267d20.
1 parent eb708fc commit 9cef164

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/src/helpers/safeFetch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import routing from 'services/routing'
22

33
export default async function safeFetch(path) {
4-
const response = await fetch((process.env.REACT_APP_REST_ENDPOINT || '/rest') + '/' + path, {
4+
const response = await fetch(process.env.REACT_APP_REST_ENDPOINT + '/' + path, {
55
headers: { 'prisma-service': routing.getPrismaService() }
66
})
77

client/src/services/apollo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const apollo = new ApolloClient({
4040
}
4141
}),
4242
new HttpLink({
43-
uri: process.env.REACT_APP_GRAPHQL_ENDPOINT || '/gql'
43+
uri: process.env.REACT_APP_GRAPHQL_ENDPOINT
4444
})
4545
]),
4646
cache: apolloCache,

0 commit comments

Comments
 (0)