Hi thanks for the video. -f flag is used to configure .env file path. By default it points to root, if you want to move into env folder then use 'env-cmd -f ./env/.env.qa react-scripts start'
Hi bro, thanks for the video. Shall we show/hide different components based on environment? For example I have home and about page. I want to show only home page in "qa" and both in "prod".
Bro how to deploy.env in Azure Storage Static website . We want to build react app only once in pipeline and deploy artifact in different environments pointing to different env file. Can you suggest please
Hi Vikas, Can you please help me to setup Azure CICD pipeline using this different .env files. Currently we have CICD setup of one single .env files but how to use the same yml files for different .env
because development mostly uses dummy data and buggy code and hardly deals with data that is real or live (production). qa is for features and data that is already tested or being tested by tester
DOESNT WORK on my code, when i do npm run start when there are no .env files it creates the .env.development.local file and when i try this method to add new env such as .env.production.local it always takes the backend url of .env.development.local sigghhh
Exactly what I needed to know, thanks.
bro !!!!! just thanks alot it will be so much easier with this package
Very good tutorial...thank you bro
Hi thanks for the video. -f flag is used to configure .env file path. By default it points to root, if you want to move into env folder then use 'env-cmd -f ./env/.env.qa react-scripts start'
It helps, Thanks
Amazing video
thank you , very helpful
Thank you so much! it helped..👍
Good to hear that :)
That was helpful
good work
Hi bro, thanks for the video. Shall we show/hide different components based on environment? For example I have home and about page. I want to show only home page in "qa" and both in "prod".
Of course you can, But better to about routing based on environment
same step for build?
Yeah
Thanks it helped. If we use react-router, with this .env.{name} in place do we need to take care of anything else
Nice thanks
How to setup multiple environments to connect different databases for both nodejs and reactjs.
The way i have created different env, you can do so and provide data base url along with credentials and refer same from React js application
Bro how to deploy.env in Azure Storage Static website . We want to build react app only once in pipeline and deploy artifact in different environments pointing to different env file. Can you suggest please
👍👍👍
Thanks for watching :)
Hi Vikas, Can you please help me to setup Azure CICD pipeline using this different .env files. Currently we have CICD setup of one single .env files but how to use the same yml files for different .env
Hi i have same question… did u get the answer for it.
@@prachisharma9181 Hey, I haven’t got the answer but I have find the solution and implemented.
Could you please help me with that,
why do we have different apis for different environment? Why cannot we use the same api across all environment?
because development mostly uses dummy data and buggy code and hardly deals with data that is real or live (production). qa is for features and data that is already tested or being tested by tester
🙏🙏❤️
Thanks G
DOESNT WORK on my code, when i do npm run start when there are no .env files it creates the .env.development.local file and when i try this method to add new env such as .env.production.local it always takes the backend url of .env.development.local sigghhh
Could you please clone my repo and execute once and try
@@Codenemy it worked, thank you