diff --git a/next.config.ts b/next.config.ts index 1a17301..ca7a133 100644 --- a/next.config.ts +++ b/next.config.ts @@ -24,8 +24,8 @@ const nextConfig: NextConfig = { async rewrites() { return [ { - source: '/:path*', // 프론트엔드 요청 경로 - destination: 'http://www.picknee.co.kr:8080/:path*', // 백엔드 API 경로 + source: '/api/:path*', // 프론트엔드 요청 경로 + destination: 'http://localhost:8080/:path*', // 백엔드 API 경로 }, ]; }, diff --git a/src/lib/axios.ts b/src/lib/axios.ts index b5dbebe..f379260 100644 --- a/src/lib/axios.ts +++ b/src/lib/axios.ts @@ -1,7 +1,7 @@ import axios from "axios" import Cookies from 'js-cookie'; -const API_V1_BASE = '/' +const API_V1_BASE = '/api/' const axiosInstance = axios.create({ baseURL: API_V1_BASE,