Skip to content

Commit

Permalink
Merge pull request #4219 from Ocelot-Social-Community/resolve-websock…
Browse files Browse the repository at this point in the history
…ets-env-problem

chore: 🍰 Resolve WEBSOCKETS_URI .env Problem
  • Loading branch information
ulfgebhardt authored Feb 15, 2021
2 parents d67424a + 1168d8c commit 28dd310
Show file tree
Hide file tree
Showing 6 changed files with 339 additions and 14,020 deletions.
14,350 changes: 334 additions & 14,016 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions webapp/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion webapp/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion webapp/plugins/apollo-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 28dd310

Please sign in to comment.