HTTP Headers Sent
I'm using convex auth with next which I'm deploying in output standalone mode deployed to a vps on railway. Whenever I click a button which calls signIn, I get this error
7 Replies
this all worked fine locally
@Michal Srb any idea about this one?
I'm looking through the middleware code, and from what I understand, the middleware /api/auth makes a request to my actual convex deployment
but when I try to login, I never see my convex logs print anything, so I'm guessing it doesn't get here
wait... I think I had my env wrong
@Web Dev Cody working now?
NEXT_PUBLIC_CONVEX_URL
must be set correctly. I'll make sure we have the right error message if it isn't.railway started having issues right when I started looking into fixing this 😓
but I did notice my convex url was set incorrectly
deploying now
yup, it's working now 😆
basically I had a typo in this url
https://lovable-elephant-19.convex.cloud
which caused the middleware's proxy request to fail and print that error