Home

React js application deployment in 3 different environments

%3CLINGO-SUB%20id%3D%22lingo-sub-1127218%22%20slang%3D%22en-US%22%3EReact%20js%20application%20deployment%20in%203%20different%20environments%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1127218%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%2C%20I%20have%20a%20React%20js%20application%20with%204%20different%20environments%26nbsp%3B%3C%2FP%3E%3CP%3E1)%20.env%20-%26gt%3B%20root%3C%2FP%3E%3CP%3E2).env.test%20-%26gt%3B%20for%20Test%3C%2FP%3E%3CP%3E3).env.qa-%26gt%3B%20for%20QA%3C%2FP%3E%3CP%3E4).env.prod%20-%26gt%3B%20for%20Prod%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20when%20i%20am%20deploying%20in%20test%20and%20QA%20environments%20using%20build%20and%20release%20pipeline.%20But%20when%20i%20am%20deploying%20it%20is%20taking%20the%20.env%20configuration%20instead%20of%20respect%20environment%20file.%3C%2FP%3E%3CP%3EPlease%20guide%20how%20to%20deploy%20this%20kind%20of%20applications%20in%20different%20environments%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1127218%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBuild%20pipelines%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Enodejs%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ERelease%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

Hi , I have a React js application with 4 different environments 

1) .env -> root

2).env.test -> for Test

3).env.qa-> for QA

4).env.prod -> for Prod

 

But when i am deploying in test and QA environments using build and release pipeline. But when i am deploying it is taking the .env configuration instead of respect environment file.

Please guide how to deploy this kind of applications in different environments