Skip to content

Commit 897f180

Browse files
committed
chore: API_URL 환경 변수로 받아오기
1 parent c06ca48 commit 897f180

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

frontend/src/lib/axios.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import axios, { AxiosRequestConfig, AxiosResponse } from "axios";
22

3+
const axiosInstance = axios.create({
4+
baseURL: import.meta.env.VITE_API_URL,
5+
});
6+
7+
export const Get = async <T>(
38
url: string,
49
config?: AxiosRequestConfig,
510
): Promise<AxiosResponse<T>> => {

0 commit comments

Comments
 (0)