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(); diff --git a/src/widgets/postDetail/ui/PostDetailSection.tsx b/src/widgets/postDetail/ui/PostDetailSection.tsx index 1f704cc..10cbfcf 100644 --- a/src/widgets/postDetail/ui/PostDetailSection.tsx +++ b/src/widgets/postDetail/ui/PostDetailSection.tsx @@ -137,21 +137,15 @@ export function PostDetailSection({ post }: { post: PostDetail }) {
- - {seller?.imageUrl ? ( - {`${seller.nickname} - ) : ( - - )} - + {seller?.imageUrl ? ( + {`${seller.nickname} + ) : ( + + )}
{seller?.nickname || "판매자"}