Error while fetching data from the supabase using the nextjs `api` route
Unanswered
Cuban Crocodile posted this in #help-forum
Cuban CrocodileOP
I am making a request to the nextjs
I am having a hard time fetching data from the
api endpoint (that fetches data on the server). this api endpoint is running a supabase function, fetches data and return it to the client. I am having a hard time fetching data from the
/api endpoint in my prod app. I am encountering error 504 everytime I make a request, while when i tested it out locally it was working perfectly fine and was able to fetch the expected data.5 Replies
Cuban CrocodileOP
this is the screenshot of the data, when it tested it locally
screenshot of the data in prod
Did you set environment var correctly in vercel/your host?
@aardani Did you set environment var correctly in vercel/your host?
Cuban CrocodileOP
yes i did
Cuban CrocodileOP
can you pls help me out with this?