export const createTRPCContext = async (opts: { req: NextRequest }) => {
return {
db,
auth: getAuth(opts.req),
headers: opts.req.headers,
...opts,
};
};
export const createTRPCContext = async (opts: { req: NextRequest }) => {
return {
db,
auth: getAuth(opts.req),
headers: opts.req.headers,
...opts,
};
};