From b6a72442d3dfed5fa0dda7a0301de108846de325 Mon Sep 17 00:00:00 2001 From: ghdtnals Date: Tue, 9 Dec 2025 14:58:21 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20/api=20=EA=B2=BD=EB=A1=9C=EB=A7=8C?= =?UTF-8?q?=20=ED=94=84=EB=A1=9D=EC=8B=9C=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=ED=95=84=ED=84=B0=EB=A7=81=20=EC=B6=94=EA=B0=80=ED=95=98?= =?UTF-8?q?=EC=97=AC=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=9D=BC=EC=9A=B0?= =?UTF-8?q?=ED=8A=B8=20=EA=B0=84=EC=84=AD=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/api/[...path]/route.ts | 4 ++++ src/app/detail/[postingId]/page.tsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/api/[...path]/route.ts b/src/app/api/[...path]/route.ts index 79450f6..86dee91 100644 --- a/src/app/api/[...path]/route.ts +++ b/src/app/api/[...path]/route.ts @@ -13,6 +13,10 @@ async function proxy( req: NextRequest, ctx: { params: Promise<{ path: string[] }> }, ) { + if (!req.nextUrl.pathname.startsWith("/api/")) { + return NextResponse.next(); + } + // 프록시 대상 경로 생성 const { path: rawPath } = await ctx.params; const path = "/" + rawPath.join("/"); diff --git a/src/app/detail/[postingId]/page.tsx b/src/app/detail/[postingId]/page.tsx index ba6ea8f..c1ca216 100644 --- a/src/app/detail/[postingId]/page.tsx +++ b/src/app/detail/[postingId]/page.tsx @@ -14,7 +14,7 @@ export default async function Page({ }: { params: { postingId: string }; }) { - const { postingId } = params; + const { postingId } = await params; const id = Number(postingId); const queryClient = new QueryClient(); From 1e966ee682f3ad687dbe4ceff05a31f5370ea2cf Mon Sep 17 00:00:00 2001 From: ghdtnals Date: Tue, 9 Dec 2025 15:08:07 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=ED=8C=90=EB=A7=A4=EC=9E=90=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=ED=95=84=20=EC=9D=B4=EB=8F=99=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../postDetail/ui/PostDetailSection.tsx | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/src/widgets/postDetail/ui/PostDetailSection.tsx b/src/widgets/postDetail/ui/PostDetailSection.tsx index 7145a58..10cbfcf 100644 --- a/src/widgets/postDetail/ui/PostDetailSection.tsx +++ b/src/widgets/postDetail/ui/PostDetailSection.tsx @@ -137,20 +137,15 @@ export function PostDetailSection({ post }: { post: PostDetail }) {
- - {seller?.imageUrl ? ( - {`${seller.nickname} - ) : ( - - )} - + {seller?.imageUrl ? ( + {`${seller.nickname} + ) : ( + + )}
{seller?.nickname || "판매자"}