add social links support

This commit is contained in:
2025-06-21 15:01:22 +02:00
parent 86014e261b
commit 3db5de8c26
2 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { ProfileSettingsPageClient } from '@/app/(home)/profile/settings/page-client'
import { auth } from '@/server/auth'
import { HydrateClient, api } from '@/trpc/server'
import { SessionProvider } from 'next-auth/react'
import { redirect } from 'next/navigation'
export default async function ProfileSettingsPage() {
const session = await auth()
if (!session) {
redirect('/')
}
await Promise.all([api.profile.getSocialLinks.prefetch()])
return (
<HydrateClient>
<ProfileSettingsPageClient userId={session.user.discord_id} />
</HydrateClient>
)
}