Code cleanup in api.tsx

This commit is contained in:
Keannu Bernasol 2023-07-27 00:09:43 +08:00
parent e4278517bc
commit 1a46945d1e

View file

@ -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,