-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
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: