Fixed global url for API
This commit is contained in:
+2
-2
@@ -38,10 +38,10 @@ import AlertTemplate from "react-alert-template-basic";
|
||||
import { positions, Provider } from "react-alert";
|
||||
|
||||
// Testing - localhost
|
||||
const globalUrl = "http://192.168.3.6:5001"
|
||||
//const globalUrl = "http://192.168.3.6:5001"
|
||||
|
||||
// Production - backend proxy forwarding in nginx
|
||||
//const globalUrl = window.location.origin
|
||||
const globalUrl = window.location.origin
|
||||
|
||||
const surfaceColor = "#27292D"
|
||||
const inputColor = "#383B40"
|
||||
|
||||
@@ -531,6 +531,7 @@ const Apps = (props) => {
|
||||
.then((response) => {
|
||||
if (response.status === 200) {
|
||||
alert.success("Successfully deleted app")
|
||||
getApps()
|
||||
} else {
|
||||
alert.error("Failed deleting app")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user