From 1127a492f9fa9ee5222fbd6894592d7dc612bbb3 Mon Sep 17 00:00:00 2001 From: yeooonn Date: Thu, 19 Dec 2024 23:09:28 +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 | 4 ++-- src/lib/axios.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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,