Unverified Commit d434f1dd authored by Joe Bernard's avatar Joe Bernard Committed by GitHub

Docs typo fix (#20498)

* Docs typo fix

* Update docs/basic-features/environment-variables.md
Co-authored-by: 's avatarLachlan Campbell <lachlanjc@hey.com>
Co-authored-by: 's avatarJoe Haddad <timer150@gmail.com>
Co-authored-by: 's avatarLachlan Campbell <lachlanjc@hey.com>
Co-authored-by: 's avatarkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent 5f311cdd
...@@ -81,7 +81,7 @@ In order to expose a variable to the browser you have to prefix the variable wit ...@@ -81,7 +81,7 @@ In order to expose a variable to the browser you have to prefix the variable wit
NEXT_PUBLIC_ANALYTICS_ID=abcdefghijk NEXT_PUBLIC_ANALYTICS_ID=abcdefghijk
``` ```
This loads `process.env.NEXT_PUBLIC_ANALYTICS_ID` into the Node.js environment automatically. Allowing you to use it anywhere in your code. The value will be inlined into JavaScript sent to the browser because of the `NEXT_PUBLIC_` prefix. This loads `process.env.NEXT_PUBLIC_ANALYTICS_ID` into the Node.js environment automatically, allowing you to use it anywhere in your code. The value will be inlined into JavaScript sent to the browser because of the `NEXT_PUBLIC_` prefix.
```js ```js
// pages/index.js // pages/index.js
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment