-
-
Notifications
You must be signed in to change notification settings - Fork 162
NextJS app router support #435
Comments
This should be fairly easy to set up once a fetch adapter is implemented #188 |
Forked and support added here: |
I tried using ur framework I am getting errors like ` import { env } from " /**
return { headers, db } as inferRouterContext; // Return the context object const trpcApiRouteHandler = (req: Request) => export { ` import { createOpenApiNextAppHandler } from "next-trpc-openapi"; const handler = createOpenApiNextAppHandler({ export default handler; Can you help with this. Appreciate it. Thanks |
Thanks! |
Any plans to support the NextJS app router or an example of how to do so? I think the NextResponse and NextRequest objects are slightly different than the NextAPiResponse/NextAPIRequest objects, so the current iteration doesn't work without some messing around of the objects.
The text was updated successfully, but these errors were encountered: