From 4863119f5da9dccbb0fc753ff1adb3cd3c9b0630 Mon Sep 17 00:00:00 2001 From: JustinCast Date: Thu, 18 Mar 2021 16:10:08 -0600 Subject: [PATCH] fix: restore missing .env files (#529) * fix: restore missing .env files * fix: fix commands at package.json * fix: add mainnet info to .env.production * fix: add eoscr api * test: add netlify.toml file * test: increase heap limit * test: increase heap limit --- .gitignore | 1 - netlify.toml | 1 + services/frontend/.env | 8 ++++++++ services/frontend/.env.production | 8 ++++++++ services/frontend/.env.staging | 8 ++++++++ services/frontend/.gitignore | 3 --- services/frontend/package.json | 4 ++-- 7 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 netlify.toml create mode 100644 services/frontend/.env create mode 100644 services/frontend/.env.production create mode 100644 services/frontend/.env.staging diff --git a/.gitignore b/.gitignore index 5cb64131..12d57bd9 100644 --- a/.gitignore +++ b/.gitignore @@ -34,6 +34,5 @@ keys __docs -.env build_k8s/ ssl/ diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..4ddedbd0 --- /dev/null +++ b/netlify.toml @@ -0,0 +1 @@ +NODE_OPTIONS="--max-old-space-size=16384" \ No newline at end of file diff --git a/services/frontend/.env b/services/frontend/.env new file mode 100644 index 00000000..9e0e9413 --- /dev/null +++ b/services/frontend/.env @@ -0,0 +1,8 @@ +REACT_APP_GRAPHQL_HTTP_URL=https://graphql-jungle.eosrate.io/v1alpha1/graphql +REACT_APP_API_URL=https://jungle.eosio.cr +REACT_APP_GRAPHQL_WS_URL=wss://graphql-jungle.eosrate.io/v1alpha1/graphql +REACT_APP_EOS_API_URL=https://jungle.eosio.cr +REACT_APP_EOS_API_HOST=jungle.eosio.cr +REACT_APP_EOS_API_PORT=443 +REACT_APP_EOS_API_PROTOCOL=https +REACT_APP_EOS_CHAIN_ID=2a02a0053e5a8cf73a56ba0fda11e4d92e0238a4a2aa74fccf46d5a910746840 \ No newline at end of file diff --git a/services/frontend/.env.production b/services/frontend/.env.production new file mode 100644 index 00000000..320e1fed --- /dev/null +++ b/services/frontend/.env.production @@ -0,0 +1,8 @@ +REACT_APP_GRAPHQL_HTTP_URL=https://graphql.eosrate.io/v1/graphql +REACT_APP_API_URL=https://api.eosio.cr +REACT_APP_GRAPHQL_WS_URL=wss://graphql.eosrate.io/v1/graphql +REACT_APP_EOS_API_URL=https://api.eosio.cr +REACT_APP_EOS_API_HOST=api.eosio.cr +REACT_APP_EOS_API_PORT=443 +REACT_APP_EOS_API_PROTOCOL=https +REACT_APP_EOS_CHAIN_ID=aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906 \ No newline at end of file diff --git a/services/frontend/.env.staging b/services/frontend/.env.staging new file mode 100644 index 00000000..9e0e9413 --- /dev/null +++ b/services/frontend/.env.staging @@ -0,0 +1,8 @@ +REACT_APP_GRAPHQL_HTTP_URL=https://graphql-jungle.eosrate.io/v1alpha1/graphql +REACT_APP_API_URL=https://jungle.eosio.cr +REACT_APP_GRAPHQL_WS_URL=wss://graphql-jungle.eosrate.io/v1alpha1/graphql +REACT_APP_EOS_API_URL=https://jungle.eosio.cr +REACT_APP_EOS_API_HOST=jungle.eosio.cr +REACT_APP_EOS_API_PORT=443 +REACT_APP_EOS_API_PROTOCOL=https +REACT_APP_EOS_CHAIN_ID=2a02a0053e5a8cf73a56ba0fda11e4d92e0238a4a2aa74fccf46d5a910746840 \ No newline at end of file diff --git a/services/frontend/.gitignore b/services/frontend/.gitignore index 76e1f3d2..70d205cd 100644 --- a/services/frontend/.gitignore +++ b/services/frontend/.gitignore @@ -12,9 +12,6 @@ # misc .DS_Store -.env -.env.* - .eslintcache npm-debug.log* diff --git a/services/frontend/package.json b/services/frontend/package.json index 38192e74..72a6f60f 100644 --- a/services/frontend/package.json +++ b/services/frontend/package.json @@ -12,8 +12,8 @@ "start": "env-cmd -f .env react-scripts start", "start:staging": "env-cmd -f .env.staging react-scripts start", "prod": "serve -l 9000 --single ./build", - "build": "react-scripts build", - "build:staging": "react-scripts build", + "build": "env-cmd -f .env react-scripts build", + "build:staging": "env-cmd -f .env.staging react-scripts build", "build:production": "env-cmd -f .env.production react-scripts build", "test": "env-cmd -f .env react-scripts test --env=jsdom", "eject": "react-scripts eject",