Skip to content

Commit

Permalink
fix: restore missing .env files (#529)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
JustinCast authored Mar 18, 2021
1 parent 3495847 commit 4863119
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 6 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,5 @@ keys

__docs

.env
build_k8s/
ssl/
1 change: 1 addition & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NODE_OPTIONS="--max-old-space-size=16384"
8 changes: 8 additions & 0 deletions services/frontend/.env
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions services/frontend/.env.production
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions services/frontend/.env.staging
Original file line number Diff line number Diff line change
@@ -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
3 changes: 0 additions & 3 deletions services/frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# misc
.DS_Store

.env
.env.*

.eslintcache

npm-debug.log*
Expand Down
4 changes: 2 additions & 2 deletions services/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 4863119

Please sign in to comment.