Skip to content

Commit

Permalink
move environment variables to the .env files
Browse files Browse the repository at this point in the history
  • Loading branch information
moodysalem committed May 27, 2020
1 parent 9707905 commit 5c10a7f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
REACT_APP_CHAIN_ID="1"
REACT_APP_NETWORK_URL="https://mainnet.infura.io/v3/b8800ce81b8c451698081d269b86692b"
REACT_APP_PORTIS_ID=""
REACT_APP_FORTMATIC_KEY=""
5 changes: 0 additions & 5 deletions .env.local.example

This file was deleted.

4 changes: 4 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
REACT_APP_CHAIN_ID="1"
REACT_APP_NETWORK_URL="https://mainnet.infura.io/v3/2acb2baa4c06402792e0c701a3697d10"
REACT_APP_PORTIS_ID="c0e2bf01-4b08-4fd5-ac7b-8e26b58cd236"
REACT_APP_FORTMATIC_KEY="pk_live_F937DF033A1666BF"
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
Expand Down
6 changes: 0 additions & 6 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,3 @@
from = "/*"
to = "/index.html"
status = 200

[build.environment]
REACT_APP_IS_PRODUCTION_DEPLOY = "false"

[context.production.environment]
REACT_APP_IS_PRODUCTION_DEPLOY = "true"

0 comments on commit 5c10a7f

Please sign in to comment.