How to specify the NODE_ENV to test in AWS amplify

Viewed 99

I have a React/Node app which I am hosting on AWS amplify. I have two environments namely production and test(env.production and env.test files). I have set NODE_ENV to test in environment variables, but it is always pointing to production. How can I specify the NODE_ENV to test?

1 Answers

In the amplify console you can select the backend environment for each frontend environment by clicking edit. See detailed information in this guide

Related