set baseURL from env PUBLIC_URL if possible

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-11-12 18:02:06 +01:00
parent 1083416f98
commit 2086976316
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import axios from 'axios';
axios.defaults.baseURL = 'http://localhost:1337';
axios.defaults.baseURL = process.env.PUBLIC_URL || 'http://localhost:1337';
export const postResponse = async (request) => {
let success = null;