Skip to content

Commit

Permalink
675 feature request adding env file for dev mode during create react …
Browse files Browse the repository at this point in the history
…play process (reactplay#756)

* created dev env variables

* remove documentation for adding env variables

* add warning in documentation for .env.development
  • Loading branch information
ammaaraslam committed Oct 27, 2022
1 parent 047a102 commit 3deb5a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
REACT_APP_NHOST_BACKEND_URL=https://rgkjmwftqtbpayoyolwh.nhost.run/
REACT_APP_NHOST_VERSION=v1
REACT_APP_NHOST_ENDPOINT=graphql
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ Once forked, you can clone the repo by clicking the `Clone or Download` button o

Please change the directory after cloning the repository using the `cd <folder-name>` command.

>**Note:** Please do not remove the `.env.development` file from the root folder. It contains all the evironment variables required for development.
### ⬇️ Install Dependencies
Next, install the dependencies by running the following command in the `react-play` repo:

Expand All @@ -94,14 +96,6 @@ yarn install
npm install --legacy-peer-deps
```

### ⛓️ Create a `.env` file at the root of your project folder with the following content,

```bash
REACT_APP_NHOST_BACKEND_URL=https://rgkjmwftqtbpayoyolwh.nhost.run/
REACT_APP_NHOST_VERSION=v1
REACT_APP_NHOST_ENDPOINT=graphql
```

### 🦄 Start the Development Mode
Use the following command to start the app in the development mode:

Expand Down

0 comments on commit 3deb5a8

Please sign in to comment.