Manage Environments in Create React App


#1

Link to chapter - https://serverless-stack.com/chapters/manage-environments-in-create-react-app.html


#2

Looking for a little clarity on this section. Are we supposed to run these build commands here? It’s not clear on whether you are giving an example of what to run later, or we are actually supposed to be running the build commands for dev and prod during this section.

REACT_APP_STAGE=prod npm run build

#3

Good point. I’ll edit it to make it clear. It’s just an example. We use this command later in our build process.