Skip to content

Commit

Permalink
[#7] 기본 url 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
03hoho03 committed May 4, 2024
1 parent d24c138 commit 49836a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/api.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { API_BASE_URL } from '@/constants/api'
import { API_BASE_URL, API_MOCKING, MOCK_BASE_URL } from '@/constants/api'
import axios, { AxiosError, AxiosResponse } from 'axios'

export const instance = axios.create({
baseURL: API_BASE_URL,
baseURL: API_MOCKING === 'enabled' ? MOCK_BASE_URL : API_BASE_URL,
})

function responsefulfilledInterceptor(res: AxiosResponse) {
Expand Down

0 comments on commit 49836a4

Please sign in to comment.