let baseUrl;
if (process.env.NODE_ENV !== 'production') {
  baseUrl = "http://localhost:8000/api/v1";
}
else {
  baseUrl = location.origin + "/api/v1";
}

export const BASE_URL = baseUrl;

export const BASE_URL = location.origin + "/api/v1";

--- 
+++ 
@@ -1 +1,9 @@
-export const BASE_URL = location.origin + "/api/v1";
+let baseUrl;
+if (process.env.NODE_ENV !== 'production') {
+  baseUrl = "http://localhost:8000/api/v1";
+}
+else {
+  baseUrl = location.origin + "/api/v1";
+}
+
+export const BASE_URL = baseUrl;
Update base url handling for dev
