Kaynağa Gözat

Client: graphql.js -> env.ts

tags/v0.9.1
akimmig 4 yıl önce
ebeveyn
işleme
44ad231ebe
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. +1
    -2
      client/src/plugins/graphql.js

+ 1
- 2
client/src/plugins/graphql.js Dosyayı Görüntüle

@@ -7,13 +7,12 @@ import { defaultDataIdFromObject, InMemoryCache } from 'apollo-cache-inmemory'
import * as Cookie from 'js-cookie'
import { ref } from '@vue/composition-api'
import gql from 'graphql-tag'
import { GRAPHQLserver as server } from '@/env'

Vue.use(VueApollo)

export const clientId = uuid()

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

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

Yükleniyor…
İptal
Kaydet