From 0a2c180d6aea6eff758c9857dd2b8ad1c57ef699 Mon Sep 17 00:00:00 2001 From: Felix Hamme Date: Wed, 8 May 2019 09:40:00 +0200 Subject: [PATCH] Replace hardcoded backend url with environment variable (works only server-side) (required client-side tough, so it doesn't work (wait till next commit, Thor77 has a lovely fix for that)) (This commit was definitely not changed because I nagged about it wasn't working...) --- js/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/api.js b/js/api.js index fba72d9..3758752 100644 --- a/js/api.js +++ b/js/api.js @@ -10,7 +10,7 @@ import { errorMessages } from './constants'; const axios = require('axios'); -const api_url = 'https://api.turnie.re'; +const api_url = process.env.REACT_APP_TURNIERE_API_URL; const actiontypes_userinfo = { 'REGISTER' : 'REGISTER',