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
e4278517bc
commit
1a46945d1e
1 changed files with 7 additions and 0 deletions
|
@ -16,6 +16,13 @@ if (__DEV__) {
|
|||
backendURLWebsocket = "ws://10.0.10.8:8000";
|
||||
}
|
||||
|
||||
// Switch this on if you wanna run production URLs while in development
|
||||
let use_production = false;
|
||||
if (use_production) {
|
||||
backendURL = "https://stude.keannu1.duckdns.org";
|
||||
backendURLWebsocket = "ws://stude.keannu1.duckdns.org";
|
||||
}
|
||||
|
||||
const instance = axios.create({
|
||||
baseURL: backendURL,
|
||||
timeout: 1000,
|
||||
|
|
Loading…
Reference in a new issue