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