From 81a289232f7c06b706f80258841c9c01a2504e07 Mon Sep 17 00:00:00 2001 From: ruehan Date: Tue, 10 Dec 2024 13:55:18 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Hotfix:=20API=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/_redirects | 3 ++- src/pages/WalkPage/components/MapComponent/index.tsx | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/public/_redirects b/public/_redirects index b485d3f..f2be657 100644 --- a/public/_redirects +++ b/public/_redirects @@ -1 +1,2 @@ -/api/ors/* http://112.162.84.70:8003/ors/:splat 200! \ No newline at end of file +/api/ors/v2/directions/foot-walking/geojson http://112.162.84.70:8003/ors/v2/directions/foot-walking/geojson 200! +/* /index.html 200 \ No newline at end of file diff --git a/src/pages/WalkPage/components/MapComponent/index.tsx b/src/pages/WalkPage/components/MapComponent/index.tsx index 6b1b8ed..0e4c92d 100644 --- a/src/pages/WalkPage/components/MapComponent/index.tsx +++ b/src/pages/WalkPage/components/MapComponent/index.tsx @@ -927,7 +927,12 @@ export default function MapComponent({ isModalOpen = false, setNearbyWalkers }: { headers: { 'Content-Type': 'application/json', - Accept: 'application/json', + }, + // 프록시 요청임을 명시 + proxy: { + protocol: 'http', + host: '112.162.84.70', + port: 8003, }, } )