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

Fix query error with tRPC in Next 14 Route Handler #858

Conversation

junlarsen
Copy link
Member

tRPC doesn't behave well as a Route Handler, presumably because it doesn't handle OPTIONS or something properly

Copy link

linear bot commented Apr 4, 2024

Comment on lines 6 to 7
// TODO: Add a way to get the userId from the request
export const getServerClient = async () => createCaller(createContextInner({ auth: { userId: null } }))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course, this is wrong, but I don't have time to figure out what needs to be added here.

https://linear.app/dotkom/issue/DOT-719/make-getserverclient-call-createcaller-with-the-currently-requested tracks this

Copy link

vercel bot commented Apr 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
invoicification ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 4, 2024 5:47pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants