Skip to content

Instantly share code, notes, and snippets.

@kunokdev
Created December 13, 2018 23:17
Show Gist options
  • Save kunokdev/72a7ebb3bf32c6f5a1d27691a83dd1d7 to your computer and use it in GitHub Desktop.
Save kunokdev/72a7ebb3bf32c6f5a1d27691a83dd1d7 to your computer and use it in GitHub Desktop.
Create react app with with environment variable inside .env
# 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