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...)
This commit is contained in:
Felix Hamme 2019-05-08 09:40:00 +02:00
parent e76840de21
commit 0a2c180d6a
1 changed files with 1 additions and 1 deletions

View File

@ -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',