Skip to content

Commit

Permalink
check endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mistakenelf committed Feb 2, 2019
1 parent bc29c26 commit 3d88381
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/apollo/index.ts
@@ -1,7 +1,10 @@
import ApolloClient from 'apollo-boost'

const client = new ApolloClient({
uri: 'https://plate-api.azurewebsites.net/api/graphql'
uri:
process.env.NODE_ENV === 'production'
? 'https://plate-api.azurewebsites.net/api/graphql'
: 'http://localhost:5000/api/graphql'
})

export default client

0 comments on commit 3d88381

Please sign in to comment.