diff --git a/src/utils/api.js b/src/utils/api.js index db815a7..8dd7d3b 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -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; -} \ No newline at end of file +}