From d20cc75085d0a5df1f3dedee3324879efc9a6e70 Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Mon, 29 Dec 2025 21:10:35 -0800 Subject: [PATCH] fix: remove conflicting profile route --- frontend/app/profile/[username]/page.tsx | 41 ------------------------ 1 file changed, 41 deletions(-) delete mode 100644 frontend/app/profile/[username]/page.tsx diff --git a/frontend/app/profile/[username]/page.tsx b/frontend/app/profile/[username]/page.tsx deleted file mode 100644 index 6409e91..0000000 --- a/frontend/app/profile/[username]/page.tsx +++ /dev/null @@ -1,41 +0,0 @@ - -import { getApiUrl } from "@/lib/api-config" -import { ProfilePoster } from "@/components/profile/profile-poster" -import { notFound } from "next/navigation" - -interface ProfilePageProps { - params: Promise<{ - username: string - }> -} - -async function getProfile(username: string) { - try { - const res = await fetch(`${getApiUrl()}/users/profile/${username}`, { - next: { revalidate: 60 } // Cache for 1 minute - }) - - if (res.status === 404) return null - if (!res.ok) throw new Error("Failed to fetch profile") - - return res.json() - } catch (error) { - console.error("Profile fetch error:", error) - return null - } -} - -export default async function ProfilePage({ params }: ProfilePageProps) { - const { username } = await params - const profile = await getProfile(username) - - if (!profile) { - notFound() - } - - return ( -