mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Resolve WEBSOCKETS_URI config problem
- Value was not overtaken from .env.
This commit is contained in:
parent
2ef537fd70
commit
ac27d6ac96
@ -18,6 +18,7 @@ const environment = {
|
|||||||
const server = {
|
const server = {
|
||||||
GRAPHQL_URI: process.env.GRAPHQL_URI || 'http://localhost:4000',
|
GRAPHQL_URI: process.env.GRAPHQL_URI || 'http://localhost:4000',
|
||||||
BACKEND_TOKEN: process.env.BACKEND_TOKEN || 'NULL',
|
BACKEND_TOKEN: process.env.BACKEND_TOKEN || 'NULL',
|
||||||
|
WEBSOCKETS_URI: process.env.WEBSOCKETS_URI || 'ws://localhost:4000/graphql',
|
||||||
}
|
}
|
||||||
|
|
||||||
const sentry = {
|
const sentry = {
|
||||||
|
|||||||
@ -11,7 +11,7 @@ export default ({ req, nuxtState }) => {
|
|||||||
const backendUrl = env.GRAPHQL_URI || 'http://localhost:4000'
|
const backendUrl = env.GRAPHQL_URI || 'http://localhost:4000'
|
||||||
|
|
||||||
return {
|
return {
|
||||||
wsEndpoint: env.WEBSOCKETS_URI || 'ws://localhost:4000/graphql',
|
wsEndpoint: env.WEBSOCKETS_URI,
|
||||||
httpEndpoint: process.server ? backendUrl : '/api',
|
httpEndpoint: process.server ? backendUrl : '/api',
|
||||||
httpLinkOptions: {
|
httpLinkOptions: {
|
||||||
credentials: 'same-origin',
|
credentials: 'same-origin',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user