Skip to content

Commit 3b3d249

Browse files
zanechualeerobbalazsorban44ijjk
authoredJul 6, 2022
Update edge-runtime.md (#38271)
* Update edge-runtime.md * Update docs/api-reference/edge-runtime.md * fix linting Co-authored-by: Lee Robinson <me@leerob.io> Co-authored-by: Balázs Orbán <info@balazsorban.com> Co-authored-by: JJ Kasper <jj@jjsweb.site>
1 parent 7f6b8ac commit 3b3d249

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎docs/api-reference/edge-runtime.md

+9
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,15 @@ The Next.js Edge Runtime is based on standard Web APIs, which is used by [Middle
115115

116116
You can use `process.env` to access [Environment Variables](/docs/basic-features/environment-variables.md) for both `next dev` and `next build`.
117117

118+
Running `console.log` on `process.env` **will not** show all your Environment Variables. You have to access the variables directly as shown below:
119+
120+
```javascript
121+
console.log(process.env)
122+
// { NEXT_RUNTIME: 'edge' }
123+
console.log(process.env.TEST_VARIABLE)
124+
// { NEXT_RUNTIME: 'edge', TEST_VARIABLE: 'value' }
125+
```
126+
118127
## Unsupported APIs
119128

120129
The Edge Runtime has some restrictions including:

0 commit comments

Comments
 (0)
Please sign in to comment.