Use ENV vars instead of hardcoded
This commit is contained in:
parent
b8739d2eca
commit
9529f5d17b
@ -3,5 +3,5 @@ import axios from "axios";
|
||||
// Axios create, exporting callAPI
|
||||
|
||||
export const callAPI = axios.create({
|
||||
baseURL: "https://devapi.benjamyn.love/migrations/",
|
||||
baseURL: process.env.REACT_APP_API_ADDRESS,
|
||||
});
|
||||
|
||||
@ -9,7 +9,7 @@ function Msgbox(props) {
|
||||
<span className="card-title">
|
||||
{ props.error ? <span> { "Unable to update: " + props.error } </span> : null }
|
||||
{ props.msg ? <span className="white-text">{ "Updated migration details for: " + props.msg }</span> : null }
|
||||
{ props.linkid ? <a href={ "https://devui.benjamyn.love/migrations/" + props.linkid } className="white-link">{"https://devui.benjamyn.love/migrations/" + props.linkid }</a> : null }
|
||||
{ props.linkid ? <a href={ process.env.REACT_APP_SITE_URL + props.linkid } className="white-link">{process.env.REACT_APP_SITE_URL + props.linkid }</a> : null }
|
||||
</span>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user