From 7a1e6cfb58315d5dc7799c675f94f9a80f15f78b Mon Sep 17 00:00:00 2001
From: danieldeng2 <danieldeng223@gmail.com>
Date: Fri, 4 Sep 2020 00:34:50 +0100
Subject: [PATCH] More general route for testing on mobile devices

---
 src/constants/routes.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/constants/routes.tsx b/src/constants/routes.tsx
index 3589fdc46..aa560c1dd 100644
--- a/src/constants/routes.tsx
+++ b/src/constants/routes.tsx
@@ -1,5 +1,5 @@
 const dev = {
-  MATERIALS_URL: "http://localhost:5000"
+  MATERIALS_URL: `http://${window.location.hostname}:5000`
 }
 
 const prod = {
-- 
GitLab