first commit

This commit is contained in:
2023-05-02 19:11:53 +02:00
commit a6f058452d
21 changed files with 9977 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import type { inferAsyncReturnType } from '@trpc/server'
import type { H3Event } from 'h3'
import { prisma } from '~/server/prisma'
export function createContext(_event: H3Event) {
return {
prisma,
}
}
export type Context = inferAsyncReturnType<typeof createContext>