Skip to content

Commit

Permalink
source .env
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto committed May 21, 2024
1 parent df47e6e commit fdea098
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@

## Project Structure

### Setup

- touch .env
- Add REACT_APP_RECLAIM_GRAPH_URI and REACT_APP_ENS_GRAPH_URI (Get the API key and deployment url via https://thegraph.com/studio)

#### `yarn react-app:start:live`

Runs the React app in production mode pointing to mainnet<br>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
],
"private": true,
"scripts": {
"react-app:build": "REACT_APP_RECLAIM_GRAPH_URI=$REACT_APP_RECLAIM_GRAPH_URI REACT_APP_ENS_GRAPH_URI=$REACT_APP_ENS_GRAPH_URI REACT_APP_STAGE=live yarn workspace @project/react-app build",
"react-app:build": "source .env && REACT_APP_RECLAIM_GRAPH_URI=$REACT_APP_RECLAIM_GRAPH_URI REACT_APP_ENS_GRAPH_URI=$REACT_APP_ENS_GRAPH_URI REACT_APP_STAGE=live yarn workspace @project/react-app build",
"react-app:publish": "echo 'reclaim.ens.domains' > packages/react-app/build/CNAME && yarn gh-pages -d packages/react-app/build",
"react-app:deploy": "yarn react-app:build && yarn react-app:publish",
"react-app:start": "yarn workspace @project/react-app start",
"react-app:start:live": "REACT_APP_STAGE=live yarn workspace @project/react-app start"
"react-app:start:live": "source .env && REACT_APP_RECLAIM_GRAPH_URI=$REACT_APP_RECLAIM_GRAPH_URI REACT_APP_ENS_GRAPH_URI=$REACT_APP_ENS_GRAPH_URI REACT_APP_STAGE=live yarn workspace @project/react-app start"
},
"workspaces": {
"nohoist": [
Expand Down

0 comments on commit fdea098

Please sign in to comment.