mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2024-11-17 06:19:25 +08:00
Code cleanup in api.tsx
This commit is contained in:
parent
3331ccb974
commit
e4278517bc
1 changed files with 3 additions and 7 deletions
|
@ -9,15 +9,11 @@ import {
|
|||
StudentData,
|
||||
} from "../../interfaces/Interfaces";
|
||||
|
||||
export let backendURL = "";
|
||||
export let backendURLWebsocket = "";
|
||||
let use_production = false;
|
||||
if (__DEV__ && !use_production) {
|
||||
export let backendURL = "https://stude.keannu1.duckdns.org";
|
||||
export let backendURLWebsocket = "ws://stude.keannu1.duckdns.org";
|
||||
if (__DEV__) {
|
||||
backendURL = "http://10.0.10.8:8000";
|
||||
backendURLWebsocket = "ws://10.0.10.8:8000";
|
||||
} else {
|
||||
backendURL = "https://stude.keannu1.duckdns.org";
|
||||
backendURLWebsocket = "ws://stude.keannu1.duckdns.org";
|
||||
}
|
||||
|
||||
const instance = axios.create({
|
||||
|
|
Loading…
Reference in a new issue