Sha256: f68f03716f59d1b508cfdbd643fed15782bdf1c9372b12e0d53c01f78e2e6341

Contents?: true

Size: 362 Bytes

Versions: 4

Compression:

Stored size: 362 Bytes

Contents

import ApolloClient, { createNetworkInterface } from 'apollo-client';

// Create a custom network interface for Apollo since our
// API endpoint is not the default.
const networkInterface = createNetworkInterface({ 
  uri: '/api',
  opts: {
    credentials: 'same-origin'
  }
});

const client = new ApolloClient({
  networkInterface
});

export default client;

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
decidim-comments-0.0.2 app/frontend/application/apollo_client.js
decidim-0.0.2 decidim-comments/app/frontend/application/apollo_client.js
decidim-comments-0.0.1 app/frontend/application/apollo_client.js
decidim-0.0.1 decidim-comments/app/frontend/application/apollo_client.js