Skip to content

Commit

Permalink
chore: remove dependency on https swiftwave proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoysrt authored Oct 16, 2023
1 parent 06de4e4 commit 41d20d1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/context/config/configState.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,8 @@ const ConfigState = (props) => {

// Get the server host and port
const setURI = () => {
if(window.location.host == "dashboard.swiftwave.org" ){
let baseURL = state.server.host + ":" + state.server.port;
axios.defaults.baseURL = "https://proxy.swiftwave.org";
axios.defaults.headers.common["X-PROXY-PASS"] = baseURL;
} else {
let baseURL = state.server.host + ":" + state.server.port;
axios.defaults.baseURL = "http://"+baseURL;
}

};

// Get websocket URI
Expand Down

0 comments on commit 41d20d1

Please sign in to comment.