How to work with a sensitive variable at the angle

Asked

Viewed 39 times

0

I have big problems, I have several computers where each one consumes a variable but their data is different, to exemplify:

I have app.js file where there is a route to access my api, in development I have a link and in production other, I want to avoid constant exchange and avoid the risk of forgetting the link in production or development.

I’ve found some tool that made this service a api but I lost where she was.

Would anyone have any idea or other api to solve my problem ?

  • There are several ways to implement such a mechanism. What kind of server-side technology are you using?

  • @Onosendai really need is for front-end. But in the back-end I use Laravel

  • The front-end may be the information consumer, but I suppose the part that identifies as the production or development environment is the server, correct?

  • No, there are sensitive variables in the front end as well

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.