1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

pass proxy as environment variable

This commit is contained in:
Ricardo Hernandez-Montoya 2017-05-31 14:29:42 +02:00
parent 38f2576ce9
commit bbfdc3acbb
2 changed files with 3 additions and 2 deletions

View file

@ -2,7 +2,6 @@
"name": "villasweb-frontend",
"version": "0.1.0",
"private": true,
"proxy": "http://localhost:4000",
"dependencies": {
"bootstrap": "^3.3.7",
"classnames": "^2.2.5",

View file

@ -21,7 +21,9 @@
import RestAPI from '../api/rest-api';
import AppDispatcher from '../app-dispatcher';
const API_URL = '/api/v1';
const PROXY = process.env.REACT_APP_HTTP_PROXY || "http://localhost:4000";
const API_URL = PROXY + '/api/v1';
class RestDataManager {
constructor(type, url, keyFilter) {