upgrade to next 15 (#151)

This commit is contained in:
KM Koushik
2025-05-02 20:49:37 +10:00
committed by GitHub
parent 6dc6b4d213
commit d2587aed0d
28 changed files with 6814 additions and 8889 deletions

View File

@@ -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({