upgrade to next 15 (#151)
This commit is contained in:
1 parent
6dc6b4d213
commit
d2587aed0d
28 files changed
+6814
-8889
No files matched your search
@@ -10,8 +10,8 @@ import { createTRPCContext } from "~/server/api/trpc";
|
||||
* This wraps the `createTRPCContext` helper and provides the required context for the tRPC API when
|
||||
* handling a tRPC call from a React Server Component.
|
||||
*/
|
||||
const createContext = cache(() => {
|
||||
const heads = new Headers(headers());
|
||||
const createContext = cache(async () => {
|
||||
const heads = new Headers(await headers());
|
||||
heads.set("x-trpc-source", "rsc");
|
||||
|
||||
return createTRPCContext({
|
||||
|
||||
Reference in new issue
Block a user