Skip to content

Commit

Permalink
Merge pull request #1834 from ResearchHub/remove-ws-staging
Browse files Browse the repository at this point in the history
Use API URL for websockets in staging
  • Loading branch information
gzurowski authored Sep 17, 2024
2 parents f17f1b1 + 948d3e3 commit d6ada34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions components/withWebSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ const ALLOWED_ORIGINS = [
"backend.prod.researchhub.com",
"wss://backend.prod.researchhub.com",
"backend.staging.researchhub.com",
"websocket.staging.researchhub.com",
"wss://websocket.staging.researchhub.com",
"wss://backend.staging.researchhub.com",
"researchhub.com",
];

Expand Down
2 changes: 1 addition & 1 deletion config/ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const ROUTES = {

function setBaseUrl() {
if (process.env.REACT_APP_ENV === "staging") {
return "wss://websocket.staging.researchhub.com/ws/";
return "wss://backend.staging.researchhub.com/ws/";
} else if (process.env.NODE_ENV === "production") {
return "wss://backend.prod.researchhub.com/ws/";
} else {
Expand Down

0 comments on commit d6ada34

Please sign in to comment.