From ab60f85a7360914c68192baacebaa64276867f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=B1=EC=A3=BC?= Date: Fri, 1 Aug 2025 21:00:16 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=EC=83=81=EC=84=B8=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=20=EB=B0=94=EB=80=8C=EC=96=B4=EC=95=BC=20?= =?UTF-8?q?=ED=95=98=EB=8A=94=20=EB=B6=80=EB=B6=84=EB=A7=8C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/wines/[wineid].tsx | 63 +++++++++++++++++++++++------------- 1 file changed, 40 insertions(+), 23 deletions(-) diff --git a/src/pages/wines/[wineid].tsx b/src/pages/wines/[wineid].tsx index 627d3df..adb82db 100644 --- a/src/pages/wines/[wineid].tsx +++ b/src/pages/wines/[wineid].tsx @@ -4,6 +4,7 @@ import { dehydrate, QueryClient, useQuery } from '@tanstack/react-query'; import axios from 'axios'; import { GetServerSideProps } from 'next'; import dynamic from 'next/dynamic'; +import Head from 'next/head'; import { useRouter } from 'next/router'; import { getWineInfoForClient } from '@/api/getWineInfo'; @@ -47,30 +48,46 @@ export default function WineInfoById(props: WinePageProps) { } return ( -
- - - -
-
-

리뷰 목록

- + <> + + {`${data.name} 상세정보`} + + + + + + +
+ + + +
+
+

리뷰 목록

+ +
+
- -
-
+ + ); } From 055d3fc56a1f243dd3bccc5b9dfa93323b61df62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=B1=EC=A3=BC?= Date: Fri, 1 Aug 2025 21:05:32 +0900 Subject: [PATCH 2/3] =?UTF-8?q?chore:=ED=8F=AC=EB=A7=B7=ED=8C=85=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 --- src/pages/wines/[wineid].tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/wines/[wineid].tsx b/src/pages/wines/[wineid].tsx index adb82db..776d2a6 100644 --- a/src/pages/wines/[wineid].tsx +++ b/src/pages/wines/[wineid].tsx @@ -53,12 +53,12 @@ export default function WineInfoById(props: WinePageProps) { {`${data.name} 상세정보`} From e126c29b04f439585ba3350c841069278ce0ee27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=B1=EC=A3=BC?= Date: Sat, 2 Aug 2025 15:08:23 +0900 Subject: [PATCH 3/3] =?UTF-8?q?chore:=20=EC=9E=90=EC=9E=98=ED=95=9C=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 --- src/components/common/card/ImageCard.tsx | 2 +- src/components/wineDetail/WineContent.tsx | 2 +- src/pages/wines/[wineid].tsx | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/common/card/ImageCard.tsx b/src/components/common/card/ImageCard.tsx index 6fe463f..f66fd16 100644 --- a/src/components/common/card/ImageCard.tsx +++ b/src/components/common/card/ImageCard.tsx @@ -34,7 +34,7 @@ export function ImageCard({ alt='와인 이미지' width={80} height={112} - className={cn('h-28 w-20 rounded-md object-cover', imageClassName)} + className={cn('h-28 w-20 rounded-md object-fit', imageClassName)} onError={() => setHasImageError(true)} /> )} diff --git a/src/components/wineDetail/WineContent.tsx b/src/components/wineDetail/WineContent.tsx index 827b5e3..f795c4d 100644 --- a/src/components/wineDetail/WineContent.tsx +++ b/src/components/wineDetail/WineContent.tsx @@ -10,7 +10,7 @@ interface Props { function WineContent({ name, region, price }: Props) { return ( -
+

{name}

diff --git a/src/pages/wines/[wineid].tsx b/src/pages/wines/[wineid].tsx index 776d2a6..f86e081 100644 --- a/src/pages/wines/[wineid].tsx +++ b/src/pages/wines/[wineid].tsx @@ -118,9 +118,11 @@ export const getServerSideProps: GetServerSideProps = async (cont staleTime: 0, retry: false, }); - console.log(`[getServerSideProps] 와인 상세 정보 프리패치 성공 (ID: ${parsedWineId})`); } catch (error: any) { console.error(`[SSR] 와인 상세 정보 로딩 중 최종 에러:`, error.message || error); + return { + notFound: true, + }; } return {