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 = {
|
||||
GRAPHQL_URI: process.env.GRAPHQL_URI || 'http://localhost:4000',
|
||||
BACKEND_TOKEN: process.env.BACKEND_TOKEN || 'NULL',
|
||||
WEBSOCKETS_URI: process.env.WEBSOCKETS_URI || 'ws://localhost:4000/graphql',
|
||||
}
|
||||
|
||||
const sentry = {
|
||||
|
||||
@ -11,7 +11,7 @@ export default ({ req, nuxtState }) => {
|
||||
const backendUrl = env.GRAPHQL_URI || 'http://localhost:4000'
|
||||
|
||||
return {
|
||||
wsEndpoint: env.WEBSOCKETS_URI || 'ws://localhost:4000/graphql',
|
||||
wsEndpoint: env.WEBSOCKETS_URI,
|
||||
httpEndpoint: process.server ? backendUrl : '/api',
|
||||
httpLinkOptions: {
|
||||
credentials: 'same-origin',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user