Frontend not able to communicate with db

hi , my first mern stack app [using vite]i m trying to deploy on render and it is live but not able to fetch data from database . like in local enviroment we can set http:localhoast 5000 for making api call what key value pair i should i add on render so it can hit api … right now i m using vite_url as key and url of my site which is created by render as value … this is error i m having i
net::ERR_BLOCKED_BY_CLIENT

Hey,

You just need to add the address where your backend is running. Is it hosted on a different Render service or the same one as your frontend? You’ll need to adjust this depending on where your backend is running. If both the frontend and backend are on the same server, you could use ‘localhost,’ just like you do locally. However, in most MERN stack apps, the frontend is a static site, so you’ll likely be calling your backend from the public internet

Jérémy.
Render Support, UTC+3