mirror of
https://github.com/ershisan99/www.git
synced 2026-01-27 12:35:41 +00:00
wip
This commit is contained in:
@@ -3,11 +3,11 @@ 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()
|
||||
console.log('user', session.user)
|
||||
// void api.post.getLatest.prefetch()
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user