Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/app/api/[...path]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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("/");
Expand Down
2 changes: 1 addition & 1 deletion src/app/detail/[postingId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
24 changes: 9 additions & 15 deletions src/widgets/postDetail/ui/PostDetailSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,21 +137,15 @@ export function PostDetailSection({ post }: { post: PostDetail }) {
<PostCarousel images={post.images} />
<div className="align-center mx-4 flex gap-3 py-4 md:mx-6 xl:mx-0">
<div className="flex h-12 w-12 items-center justify-center overflow-hidden rounded-full md:h-16 md:w-16 xl:h-14 xl:w-14">
<Link
href={`/user/${seller?.userId ?? ""}`}
aria-label="판매자 프로필 페이지"
className="h-full w-full"
>
{seller?.imageUrl ? (
<img
src={seller.imageUrl}
alt={`${seller.nickname} 프로필`}
className="h-full w-full object-cover"
/>
) : (
<UserIcon className="h-full w-full text-white" />
)}
</Link>
{seller?.imageUrl ? (
<img
src={seller.imageUrl}
alt={`${seller.nickname} 프로필`}
className="h-full w-full object-cover"
/>
) : (
<UserIcon className="h-full w-full text-white" />
)}
</div>
<span className="flex items-center text-base md:text-xl xl:text-base">
{seller?.nickname || "판매자"}
Expand Down