From 5c10a7f61d7c74606abc6eaf6cc9cf33e6964747 Mon Sep 17 00:00:00 2001 From: Moody Salem Date: Tue, 26 May 2020 20:06:18 -0400 Subject: [PATCH] move environment variables to the .env files --- .env | 4 ++++ .env.local.example | 5 ----- .env.production | 4 ++++ .gitignore | 1 - netlify.toml | 6 ------ 5 files changed, 8 insertions(+), 12 deletions(-) create mode 100644 .env delete mode 100644 .env.local.example create mode 100644 .env.production diff --git a/.env b/.env new file mode 100644 index 00000000000..39f1fb074ff --- /dev/null +++ b/.env @@ -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="" \ No newline at end of file diff --git a/.env.local.example b/.env.local.example deleted file mode 100644 index 939ddb0fd86..00000000000 --- a/.env.local.example +++ /dev/null @@ -1,5 +0,0 @@ -REACT_APP_CHAIN_ID="1" -REACT_APP_NETWORK_URL="" -REACT_APP_PORTIS_ID="" -REACT_APP_FORTMATIC_KEY="" -REACT_APP_IS_PRODUCTION_DEPLOY="false" \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 00000000000..03798803939 --- /dev/null +++ b/.env.production @@ -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" \ No newline at end of file diff --git a/.gitignore b/.gitignore index e96dbf1c845..067c3737e5c 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,6 @@ # misc .DS_Store -.env .env.local .env.development.local .env.test.local diff --git a/netlify.toml b/netlify.toml index 1b86a0b0aa8..bf654cb7b2e 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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"