Skip to content

Commit

Permalink
Fixed tiny issues introduced by the last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
IMXNOOBX committed Apr 2, 2024
1 parent 3c73ac5 commit 3e76bb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/main/userinfo/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Link from 'next/link'

export default function NotFound() {
return (
<div className='absolute w-full h-full flex items-center justify-center text-white group'>
<div className='absolute mt-20 h-auto translate-x-1/2 flex items-center justify-center text-white group'>
<div
className='absolute -translate-y-20 sm:-translate-x-44 sm:-translate-y-12 border-2 bg-red-500/50 border-red-600 rounded-xl backdrop-blur-sm z-10 p-2 shadow-lg
transition duration-300 sm:group-hover:-translate-x-28 group/nf'
Expand Down
2 changes: 1 addition & 1 deletion app/projects/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ async function getProjects(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/repos` : `${process.env.API_URL}/users/${username}/repos`,
process.env.NODE_ENV === 'development' ? `${process.env.API_URL}/github/repos` : `${process.env.API_URL}/users/${username}/repos`,
{ next: { revalidate: parseInt(process.env.CACHE_TIME || "3600") } })

return await res.json();
Expand Down

0 comments on commit 3e76bb7

Please sign in to comment.