23 Replies
Hey Rin, I don't think it's a great Idea to expose your routes like this even if they're dev, Could you share what your function looks like on the convex side?
also out of curiousity, what's the reason for naming the page route server?
Ok, I see the problem, prekoadedQueryResult does not exist under convex/nextjs
what you're looking to do is to use
usePreloadedQuery
folowing the docs on:
https://docs.convex.dev/api/modules/nextjs
so you have to places, the server component and the client component, you pass the result from the "preloadedQuery" and pass it down to Home you're doing, and remove data with its jsx partI don't understand why sometimes I can call and sometimes I can't.

just called successfully with status 200 but when reloaded it is 500
its a type error, nextjs is failing to load
not convex
your running
npx convex dev
, correct?
my script
have you followed these steps?
of course
my home component
because this is source code example


could you share where you got the code from? 😅 something aint right
+ your backend query
when i first learned about it i remember cloning it somewhere
why the too many comments haha
give me a moment to read
the thing i don't understand is i can't ping the convex deployment host but the other hosts can

I don't think I can explaing that! sorry about that, maybe its considered private, and you can only access it with localhost or the client side only..
anyway
so
try this
on your server side
what happens when you hit /server? take a screenshot of the stack trace

last question, show your convexProvider code please
I suspect you're using the wrong url

I'm reproducing this, give me like 5 min
I am happy about that
its working fine for me
maybe check your api import?