peter
06/12/2018, 6:01 PMgraphql-yoga
I have the following options config:
const options = {
port: PORT,
cors: {
credentials: true,
origin:
process.env.NODE_ENV === 'production' && !process.env.FORCE_DEV
? ['<https://xxx.app>', /xxx-(\w|-)+\.now\.sh/g, /xxx\.app/]
: [/localhost/]
},
endpoint: '/graphql',
subscriptions: '/subscriptions',
playground: '/playground'
}
peter
06/12/2018, 6:02 PMuri
that i'd pass into apollo-client
nilan
06/13/2018, 8:20 AM/subscriptions
peter
06/13/2018, 3:03 PMws://
protocol prefix?nilan
06/13/2018, 3:03 PM