Use ENV vars instead of hardcoded

This commit is contained in:
pepper 2021-01-17 19:56:50 -05:00
parent b8739d2eca
commit 9529f5d17b
2 changed files with 2 additions and 2 deletions

View File

@ -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,
});

View File

@ -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>