Move URL settings into .env file

This commit is contained in:
jwu-fisker
2021-01-07 17:01:24 -08:00
parent 1ed43fa2a0
commit 2d4e446a6f
3 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
import axios from 'axios';
const UPLOAD_ENDPOINT = 'http://localhost:8080/api/upload';
const UPLOAD_ENDPOINT = process.env.REACT_APP_UPLOAD_SERVICE_URL;
export const getCancelToken = () => {
const token = axios.CancelToken;