Integrate nextjs running on DigitalOcean app platform

When running nextjs on my local laptop the integration works fine and the Google auth dialog displayed.
I after add the digitalOcean as allowed call back with


I get the below error in the browser log:
error_description: Service not found:
This is the IP address on the backend API that is called with as the entry point.

Can someone assist?