diff --git a/app/main/userinfo/page.tsx b/app/main/userinfo/page.tsx index ea95cbc..e1e517d 100644 --- a/app/main/userinfo/page.tsx +++ b/app/main/userinfo/page.tsx @@ -11,7 +11,7 @@ async function getUserInfo(username: string = "") { throw new Error("NEXT_PUBLIC_GITHUB_USERNAME is not set in .env or .env.local"); const res = await fetch( - process.env.NODE_ENV === 'development' ? `${process.env.API_URL}/api/github` : `${process.env.API_URL}/users/${username}`, + process.env.NODE_ENV === 'development' ? `${process.env.API_URL}/github` : `${process.env.API_URL}/users/${username}`, { next: { revalidate: parseInt(process.env.CACHE_TIME || "3600") } }) return await res.json(); diff --git a/app/not-found.tsx b/app/not-found.tsx index 0ae77d5..845fb63 100644 --- a/app/not-found.tsx +++ b/app/not-found.tsx @@ -4,7 +4,7 @@ import Link from 'next/link' export default function NotFound() { return ( -
+