set baseURL from env PUBLIC_URL if possible
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
1083416f98
commit
2086976316
|
@ -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;
|
||||
|
@ -18,4 +18,4 @@ export const postResponse = async (request) => {
|
|||
success = false;
|
||||
});
|
||||
return success;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue