From 307f95440219c25ac8dce93c26fbe7b99f0beb9a Mon Sep 17 00:00:00 2001
From: M9713 <m9713@student.jamk.fi>
Date: Tue, 29 Mar 2022 20:49:52 +0300
Subject: [PATCH] Update agent.js

---
 conduit-front/src/agent.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/conduit-front/src/agent.js b/conduit-front/src/agent.js
index 42e37ce..a155317 100644
--- a/conduit-front/src/agent.js
+++ b/conduit-front/src/agent.js
@@ -4,8 +4,9 @@ import _superagent from 'superagent';
 const superagent = superagentPromise(_superagent, global.Promise);
 
 //const API_ROOT = process.env.REACT_APP_API_ROOT || 'http://vm3733.kaj.pouta.csc.fi:30000/api'
-const API_ROOT = 'http://vm3733.kaj.pouta.csc.fi:30000/api';
+//const API_ROOT = 'http://vm3733.kaj.pouta.csc.fi:30000/api';
 //const API_ROOT = '/api';
+const API_ROOT = process.env.REACT_APP_API_ROOT || 'backend:3000/api'
 
 const encode = encodeURIComponent;
 const responseBody = res => res.body;
-- 
GitLab