diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-05-24 15:24:33 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-05-24 15:24:33 -0400 |
| commit | 549cfa77c9fec0936c3a8d87a49b69401cbfbd7a (patch) | |
| tree | 18a5044807f3034c1cea67c74987e67c572f17bd /frontend/lib/withData.js | |
| parent | 072eca0e5038a7755ca9b2c94dfe1a0c3f110968 (diff) | |
toggle cart mutesss
Diffstat (limited to 'frontend/lib/withData.js')
| -rw-r--r-- | frontend/lib/withData.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/frontend/lib/withData.js b/frontend/lib/withData.js index 6fc0213..e47a9db 100644 --- a/frontend/lib/withData.js +++ b/frontend/lib/withData.js @@ -1,14 +1,10 @@ import withApollo from 'next-with-apollo'; import ApolloClient from 'apollo-boost'; -import { LOCAL_STATE_QUERY } from '../queries/queries.graphql'; -// can also be a function that accepts a `headers` object (SSR only) and returns a config +import { LOCAL_STATE_QUERY } from '../components/Cart'; function createClient({ headers }) { return new ApolloClient({ - uri: - process.env.NODE_ENV === 'development' - ? 'http://localhost:4444' - : 'http://localhost:4444', + uri: process.env.NODE_ENV === 'development' ? 'http://localhost:4444' : 'http://localhost:4444', request: operation => { operation.setContext({ fetchOptions: { |
