React + Kubernetes - make backend env variable available in frontend
Budget: $8 – $15 USD
I am running an application that has backend and frontend.
The backend has access to a ENVIRONMENT variable, it is set in a .yaml file. This variable says if it is production or development environment.
The frontend is React. I have a link in the navbar.
On localhsot is http://localhost/link
On production is http://example.com/link
On development server is also http://example.com/link
But on development server it should go to http://DEV-example.com/link
I need help to add this backend environment variable to the frontend AND also make this link dynamic, so that if the env variable is "Dev" then the link will link to dev.
P.s. I cannot give direct access to the code. This is private.
This task can be done only with zoom or google meet desktop sharing. With audio so that you can explain me how you do it. It will help me to learn.
The backend has access to a ENVIRONMENT variable, it is set in a .yaml file. This variable says if it is production or development environment.
The frontend is React. I have a link in the navbar.
On localhsot is http://localhost/link
On production is http://example.com/link
On development server is also http://example.com/link
But on development server it should go to http://DEV-example.com/link
I need help to add this backend environment variable to the frontend AND also make this link dynamic, so that if the env variable is "Dev" then the link will link to dev.
P.s. I cannot give direct access to the code. This is private.
This task can be done only with zoom or google meet desktop sharing. With audio so that you can explain me how you do it. It will help me to learn.