Skip to content

Commit

Permalink
fix error, fix runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
docimin committed Jun 16, 2024
1 parent 294068a commit 9f32744
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/app/[lang]/(user)/profile/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { redirect } from 'next/navigation'
import { getUserData } from '@/utils/server-api/user/getUserData'

export const runtime = 'edge'

export default async function Profile({ params: { lang } }) {
const user = await getUserData()
return redirect(`/${lang}/user/${user.profileUrl}`)
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/header-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface NavProps {
variant: 'default' | 'ghost'
href: string
}[]
setIsOpen?: (isOpen: boolean) => void
setIsOpen?: any
}

export function Nav({ isCollapsed, links, setIsOpen }: NavProps) {
Expand Down

0 comments on commit 9f32744

Please sign in to comment.