Skip to content

Commit 7c07440

Browse files
authored
Merge pull request #74 from GerevAI/hardcoded-http-schema-in-baseurl
fix hardcoded http:// schema in baseurl
2 parents ccb4674 + eb0ebb8 commit 7c07440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import axios from 'axios';
22

33
let port = (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') ? 8000 : window.location.port;
44
export const api = axios.create({
5-
baseURL: `http://${window.location.hostname}:${port}`,
6-
})
5+
baseURL: `${window.location.protocol}//${window.location.hostname}:${port}`,
6+
})

0 commit comments

Comments
 (0)