Skip to content

Commit 3deb5a8

Browse files
authored
675 feature request adding env file for dev mode during create react play process (reactplay#756)
* created dev env variables * remove documentation for adding env variables * add warning in documentation for .env.development
1 parent 047a102 commit 3deb5a8

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.env.development

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
REACT_APP_NHOST_BACKEND_URL=https://rgkjmwftqtbpayoyolwh.nhost.run/
2+
REACT_APP_NHOST_VERSION=v1
3+
REACT_APP_NHOST_ENDPOINT=graphql

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ Once forked, you can clone the repo by clicking the `Clone or Download` button o
7676

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

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

@@ -94,14 +96,6 @@ yarn install
9496
npm install --legacy-peer-deps
9597
```
9698

97-
### ⛓️ Create a `.env` file at the root of your project folder with the following content,
98-
99-
```bash
100-
REACT_APP_NHOST_BACKEND_URL=https://rgkjmwftqtbpayoyolwh.nhost.run/
101-
REACT_APP_NHOST_VERSION=v1
102-
REACT_APP_NHOST_ENDPOINT=graphql
103-
```
104-
10599
### 🦄 Start the Development Mode
106100
Use the following command to start the app in the development mode:
107101

0 commit comments

Comments
 (0)