Deployed strapi admin panel trying to hit localhost:1337

I am also getting this issue

In the .env file i have my IP address set and also [ STRAPI_ADMIN_BACKEND_URL= ]
In my server.js file i have:
host: env(‘HOST’, ‘X.X.X.X’),
With my IP substituted in

Even after running a rebuild with npm/yarn it will still point the admin page to localhost