mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Merge pull request #4219 from Ocelot-Social-Community/resolve-websockets-env-problem
chore: 🍰 Resolve WEBSOCKETS_URI .env Problem
This commit is contained in:
commit
28dd310aa1
14080
CHANGELOG.md
14080
CHANGELOG.md
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ocelot-social-backend",
|
||||
"version": "0.6.10",
|
||||
"version": "0.6.11",
|
||||
"description": "GraphQL Backend for ocelot.social",
|
||||
"repository": "https://github.com/Ocelot-Social-Community/Ocelot-Social",
|
||||
"author": "ocelot.social Community",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ocelot-social",
|
||||
"version": "0.6.10",
|
||||
"version": "0.6.11",
|
||||
"description": "Fullstack and API tests with cypress and cucumber for ocelot.social",
|
||||
"author": "ocelot.social Community",
|
||||
"license": "MIT",
|
||||
|
||||
@ -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 = {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ocelot-social-webapp",
|
||||
"version": "0.6.10",
|
||||
"version": "0.6.11",
|
||||
"description": "ocelot.social Frontend",
|
||||
"repository": "https://github.com/Ocelot-Social-Community/Ocelot-Social",
|
||||
"author": "ocelot.social Community",
|
||||
|
||||
@ -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