I’m hosting a Sitecore XM Cloud project on Vercel and have integrated the Sitecore Search SDK for React. While the data fetch works perfectly on my local machine, it doesn’t fetch the data when deployed on Vercel.
Upon debugging, I found a discrepancy between the request URLs:
Local: https://discover.sitecorecloud.io/discover/v2/22764180680
Vercel: https://mydomain.vercel.app/undefined/discover/v2/22764180680
Has anyone encountered this issue before or knows how to fix it?