1
Fork 0

Fix url bug

This commit is contained in:
viktorstrate 2019-08-10 18:21:58 +02:00
parent 891af5f2ba
commit fe370003c4
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ setInterval(scanner.scanAll, 1000 * 60 * 60 * 4)
// Specify port and path for GraphQL endpoint
const graphPath = '/graphql'
const endpointUrl = config.host
const endpointUrl = new URL(config.host)
// endpointUrl.port = process.env.GRAPHQL_LISTEN_PORT || 4001
/*
@ -148,7 +148,7 @@ httpServer.listen(
`🚀 GraphQL endpoint ready at ${new URL(server.graphqlPath, endpointUrl)}`
)
let subscriptionUrl = endpointUrl
let subscriptionUrl = new URL(endpointUrl)
subscriptionUrl.protocol = 'ws'
console.log(