Commit 97a1dff6 authored by Egor Kremnev's avatar Egor Kremnev

add api host from environment

parent c9b4b9f8
const isTest = process.env.REACT_APP_NODE_ENV === 'test';
export const apiUrl = "http://localhost:" + (isTest ? 8010 : 8020);
let host = "http://localhost:";
if (process.env.API_HOST_ENV) {
host = process.env.API_HOST_ENV;
}
export const apiUrl = host + (isTest ? 8010 : 8020);
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