Commit e3672468 authored by Egor Kremnev's avatar Egor Kremnev

add api host from environment

parent 97a1dff6
const isTest = process.env.REACT_APP_NODE_ENV === 'test';
let host = "http://localhost:";
let host = "http://localhost:" + (isTest ? 8010 : 8020);
if (process.env.API_HOST_ENV) {
if (process.env.REACT_APP_API_HOST_ENV) {
host = process.env.API_HOST_ENV;
}
export const apiUrl = host + (isTest ? 8010 : 8020);
export const apiUrl = host;
export const uploadUrl = apiUrl + '/uploads';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment