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:
parent
e76840de21
commit
0a2c180d6a
|
|
@ -10,7 +10,7 @@ import { errorMessages } from './constants';
|
||||||
|
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
|
|
||||||
const api_url = 'https://api.turnie.re';
|
const api_url = process.env.REACT_APP_TURNIERE_API_URL;
|
||||||
|
|
||||||
const actiontypes_userinfo = {
|
const actiontypes_userinfo = {
|
||||||
'REGISTER' : 'REGISTER',
|
'REGISTER' : 'REGISTER',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue