Fixed api client url error.

This commit is contained in:
Harrison Deng 2022-04-06 20:35:41 -05:00
parent 30894c59c4
commit 499cbf3409

View File

@ -1,7 +1,7 @@
import axios from "axios";
export const apiClient = axios.create({
baseURL: process.env.REACT_APP_API_HOST || "" + "/api/",
baseURL: (process.env.REACT_APP_API_HOST || "") + "/api/",
timeout: 5000,
withCredentials: process.env.NODE_ENV === "development",
validateStatus: function (status) {