Skip to content

Commit

Permalink
Refactor axios.ts to log baseURL in console
Browse files Browse the repository at this point in the history
  • Loading branch information
Abilov599 committed May 5, 2024
1 parent f5aa63b commit bb1f493
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import axios from "axios";

const baseURL = process.env.NEXT_PUBLIC_API_URL;

console.log("baseURL", baseURL);

const api = axios.create({ baseURL });

api.interceptors.request.use((config) => {
Expand Down

0 comments on commit bb1f493

Please sign in to comment.