From 45bd3adaca1ce0411c19c7f431ab08292f91492c Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Tue, 18 Apr 2023 19:28:15 +0200 Subject: [PATCH] Created the RequestUtil.js --- src/common/utils/RequestUtil.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/common/utils/RequestUtil.js diff --git a/src/common/utils/RequestUtil.js b/src/common/utils/RequestUtil.js new file mode 100644 index 0000000..066d0a1 --- /dev/null +++ b/src/common/utils/RequestUtil.js @@ -0,0 +1,3 @@ +const BACKEND_ADDRESS = "https://api.quickbyte.app/"; + +const loadApiRoot = () => import.meta.env.PROD ? BACKEND_ADDRESS : "/api"; \ No newline at end of file