From 5bb45f6a1a38367a96c539c136a5b03aed0a9d0f Mon Sep 17 00:00:00 2001 From: yeooonn Date: Thu, 19 Dec 2024 22:52:51 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20next.config=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.ts | 2 +- src/lib/axios.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,