Created
December 13, 2018 23:17
-
-
Save kunokdev/72a7ebb3bf32c6f5a1d27691a83dd1d7 to your computer and use it in GitHub Desktop.
Create react app with with environment variable inside .env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate React App | |
create-react-app cra-runtime-environment-variables | |
cd cra-runtime-environment-variables | |
# Create default environment variables that we want to use | |
touch .env | |
echo "API_URL=https//default.dev.api.com" >> .env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment