initialize project

This commit is contained in:
2025-04-03 12:55:12 +02:00
commit 8333cbf7be
31 changed files with 1632 additions and 0 deletions

18
src/app/page.tsx Normal file
View File

@@ -0,0 +1,18 @@
import { UserStats } from '@/app/_components/user-stats'
import { auth } from '@/server/auth'
import { HydrateClient, api } from '@/trpc/server'
export default async function Home() {
const hello = await api.post.hello({ text: 'from tRPC' })
const session = await auth()
if (session?.user) {
void api.post.getLatest.prefetch()
}
return (
<HydrateClient>
<UserStats />
</HydrateClient>
)
}