My application has a very simple login repository with pure javascript, at most one jquery.
How do I make an ajax call by passing the correct url according to the environment I am? If I am in the development environment, I want to use localhost. If I am in the homologation environment, I want to use Heroku.
I thought of using dotenv to handle this, but as I'm using pure javascript, I can not give a require ("dotenv").
Any suggestions?