Download apps/web/src/server/trpc/context.ts from websitesi/proje: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/spaces/websitesi/proje/resolve/main/apps/web/src/server/trpc/context.ts
- Command line
-
hf download hf://spaces/websitesi/proje/apps/web/src/server/trpc/context.ts
-
curl -L -o context.ts https://huggingface.co/spaces/websitesi/proje/resolve/main/apps/web/src/server/trpc/context.ts
332 Bytes
| import { auth } from '@/lib/auth'; | |
| import { prisma } from '@/lib/prisma'; | |
| import { getRedis } from '@/lib/redis'; | |
| export async function createTRPCContext() { | |
| const session = await auth(); | |
| return { | |
| prisma, | |
| redis: getRedis(), | |
| session, | |
| }; | |
| } | |
| export type TRPCContext = Awaited<ReturnType<typeof createTRPCContext>>; | |