Skip to content

Commit 6a034ba

Browse files
JBallinianschmitz
authored andcommitted
[docs] revert removal of newlines from html (#6386)
An unintended change was merged in #6062
1 parent c17e25b commit 6a034ba

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docusaurus/docs/adding-custom-environment-variables.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,19 @@ During the build, `process.env.REACT_APP_NOT_SECRET_CODE` will be replaced with
4141

4242
When you load the app in the browser and inspect the `<input>`, you will see its value set to `abcdef`, and the bold text will show the environment provided when using `npm start`:
4343

44+
<!-- prettier-ignore-start -->
45+
4446
```html
4547
<div>
4648
<small>You are running this application in <b>development</b> mode.</small>
47-
<form><input type="hidden" value="abcdef" /></form>
49+
<form>
50+
<input type="hidden" value="abcdef" />
51+
</form>
4852
</div>
4953
```
5054

55+
<!-- prettier-ignore-end -->
56+
5157
The above form is looking for a variable called `REACT_APP_NOT_SECRET_CODE` from the environment. In order to consume this value, we need to have it defined in the environment. This can be done using two ways: either in your shell or in a `.env` file. Both of these ways are described in the next few sections.
5258

5359
Having access to the `NODE_ENV` is also useful for performing actions conditionally:

0 commit comments

Comments
 (0)