diff --git a/.env.template b/.env.template new file mode 100644 index 0000000..4883d8e --- /dev/null +++ b/.env.template @@ -0,0 +1,2 @@ +REACT_APP_AUTH_SERVICE_URL = https://dev-auth.fiskerdps.com +REACT_APP_UPLOAD_SERVICE_URL = http://localhost:8080/api/upload \ No newline at end of file diff --git a/src/services/auth.js b/src/services/auth.js index 3de3a81..398452a 100644 --- a/src/services/auth.js +++ b/src/services/auth.js @@ -1,4 +1,4 @@ -const AUTH_URL = 'https://dev-auth.fiskerdps.com'; +const AUTH_URL = process.env.REACT_APP_AUTH_SERVICE_URL; const auth = { signIn: (username, password) => fetch(`${AUTH_URL}/auth/login`, { diff --git a/src/services/uploadFile.js b/src/services/uploadFile.js index 81b6ed4..07a9680 100644 --- a/src/services/uploadFile.js +++ b/src/services/uploadFile.js @@ -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;