Skip to content

Commit

Permalink
fix: production api
Browse files Browse the repository at this point in the history
  • Loading branch information
2paperstar committed Jun 5, 2024
1 parent 1903fbe commit c4d318d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from 'axios';

const api = axios.create({
baseURL: '/local',
baseURL: import.meta.env.DEV ? '/local' : 'https://api.check-out.paperst.ar',
});

api.interceptors.request.use((config) => {
Expand Down Expand Up @@ -35,7 +35,7 @@ api.interceptors.response.use(
}
}
return Promise.reject(error);
},
}
);

export default api;

0 comments on commit c4d318d

Please sign in to comment.