Fix file upload form to handle ota_update service

This commit is contained in:
jwu-fisker
2021-01-15 11:11:51 -08:00
parent 9c3534794b
commit ec4dd7d35d
7 changed files with 25 additions and 13 deletions

View File

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