Hello ! This is my second post on ERR_INVALID_URL
error thrown when building Next.js project that use Hygraph API. My previous post could be found here: ERR_INVALID_URL with Hygraph Content API
Since I forgot to reply to that post, I have to create new one. I talked to Hygraph team, even performing simple test where me and one member of Hygraph team will create nextjs project and use the same Hygraph Content API (Hygraph High Performance API) to fetch data.
We tested it both locally and deployed to Vercel. The result was the same: when the project executed/ran in local machine, the Hygraph API stored environment variable could be parsed by nextjs and successfully fetched the data. But if the same project pushed to be deployed on Vercel, it will throw the ERR_INVALID_URL
. The Hygraph team suggest there might be something wrong with the next-server
If anyone has found the solution without the workaround shown in my previous post, feel free to reply it here. Thank you!