We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb708fc commit 9cef164Copy full SHA for 9cef164
client/src/helpers/safeFetch.js
@@ -1,7 +1,7 @@
1
import routing from 'services/routing'
2
3
export default async function safeFetch(path) {
4
- const response = await fetch((process.env.REACT_APP_REST_ENDPOINT || '/rest') + '/' + path, {
+ const response = await fetch(process.env.REACT_APP_REST_ENDPOINT + '/' + path, {
5
headers: { 'prisma-service': routing.getPrismaService() }
6
})
7
client/src/services/apollo.js
@@ -40,7 +40,7 @@ const apollo = new ApolloClient({
40
}
41
}),
42
new HttpLink({
43
- uri: process.env.REACT_APP_GRAPHQL_ENDPOINT || '/gql'
+ uri: process.env.REACT_APP_GRAPHQL_ENDPOINT
44
45
]),
46
cache: apolloCache,
0 commit comments