Skip to content

Commit

Permalink
Merge pull request #51 from CodeBattles-nn/dev
Browse files Browse the repository at this point in the history
Fix frontend port issues
  • Loading branch information
doctorixx authored Jul 5, 2024
2 parents 8f4d985 + a1376a7 commit c880cff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FRONTEND/src/utils/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {toast} from "react-toastify";


export function getApiAddress() {
return `${document.location.protocol}//${document.location.hostname}`
return `${document.location.protocol}//${document.location.hostname}:${document.location.port}`


}
Expand Down
2 changes: 1 addition & 1 deletion FRONTEND_V2/src/utils/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if (!isProd) {
// axios.defaults.baseURL =`${document.location.protocol}//${document.location.hostname}:2500`
}

axios.defaults.baseURL =`${document.location.protocol}//${document.location.hostname}`
axios.defaults.baseURL =`${document.location.protocol}//${document.location.hostname}:${document.location.port}`

0 comments on commit c880cff

Please sign in to comment.