Browse Source

Client: graphql.js -> env.ts

tags/v0.9.1
akimmig 4 years ago
parent
commit
44ad231ebe
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      client/src/plugins/graphql.js

+ 1
- 2
client/src/plugins/graphql.js View File

import * as Cookie from 'js-cookie' import * as Cookie from 'js-cookie'
import { ref } from '@vue/composition-api' import { ref } from '@vue/composition-api'
import gql from 'graphql-tag' import gql from 'graphql-tag'
import { GRAPHQLserver as server } from '@/env'


Vue.use(VueApollo) Vue.use(VueApollo)


export const clientId = uuid() export const clientId = uuid()


const server = process.env.NODE_ENV === 'production' ? 'wss://turnenaufzeit.de/gql' : 'ws://localhost:3000/graphql'

const client = new SubscriptionClient(server, { const client = new SubscriptionClient(server, {
reconnect: true, reconnect: true,
connectionParams: () => ({ connectionParams: () => ({

Loading…
Cancel
Save