Well i was getting the same error when i was tying to deploy my backend as well but what worked for me is i changed my build command to :- npm install; npm run build
and please make sure to correct your package.json build command as it was before because “npm install; npm run build” will result in infinite loop as u mentioned
i really hope this should fix the problem if not then we could connect on instagram as its really not convenient to discuss here🙌
The problem is solved! Weirdly, I just kept running it, with your idea and then back to my original and now it’s working and connected - thanks so much for your help and have a great day