浏览代码

Client: graphql.js -> env.ts

tags/v0.9.1
akimmig 4 年前
父节点
当前提交
44ad231ebe
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      client/src/plugins/graphql.js

+ 1
- 2
client/src/plugins/graphql.js 查看文件

@@ -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: () => ({

正在加载...
取消
保存