Skip to content
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

Handle nextjs 13 App directory #289

Closed
Frumba opened this issue Apr 24, 2023 · 6 comments
Closed

Handle nextjs 13 App directory #289

Frumba opened this issue Apr 24, 2023 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Frumba
Copy link

Frumba commented Apr 24, 2023

Hi,

I am currently trying to use trpc open api on nextjs new app directory structure. (nextjs 13)

The issue is that request and response of the new route handlers are incompatible with with the core http/node you have.

Here is the type of the request: https://beta.nextjs.org/docs/api-reference/request and the response: https://beta.nextjs.org/docs/api-reference/response

Have you planned to handle this case too ?

Thanks a lot !

@dschlabach
Copy link

@Frumba were you able to figure this out?

@jlalmes jlalmes added enhancement New feature or request help wanted Extra attention is needed labels May 24, 2023
@KATT
Copy link
Collaborator

KATT commented May 24, 2023

Might need a fetch adapter:

Should be simple to port

@flauschi
Copy link

flauschi commented Jul 4, 2023

Is there already progress on this issue?
Would be great to use trpc-openapi in the App directory.

@shiroyasha9
Copy link

shiroyasha9 commented Aug 25, 2023

Any updates on this? Would love to provide my help, if required!

@dschlabach
Copy link

dschlabach commented Aug 25, 2023

Jack Herrington has a nice video about how to set up Next13 in the app directory, if anyone's looking for a solution:

https://www.youtube.com/watch?v=qCLV0Iaq9zU

@Frumba
Copy link
Author

Frumba commented Sep 5, 2023

@Frumba were you able to figure this out?

I removed this package from my app

@Frumba Frumba closed this as completed Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants