Skip to content

Commit 572fbc0

Browse files
committed
Adicionado env na rota da API
1 parent 904e1d5 commit 572fbc0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

frontend/src/services/api.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import axios from 'axios';
22

33
const api = axios.create({
4-
baseURL: "https://devchallengeapi.herokuapp.com/"
5-
// baseURL: 'http://localhost:3333',
4+
baseURL: process.env.REACT_APP_DEVCHALLENGE_API
65
});
76

87
export default api;

0 commit comments

Comments
 (0)