Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update edge-runtime.md #38271

Merged
merged 7 commits into from Jul 6, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/api-reference/edge-runtime.md
Expand Up @@ -115,6 +115,15 @@ The Next.js Edge Runtime is based on standard Web APIs, which is used by [Middle

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

Running `console.log` on `process.env` will not show all your environment variables, you have to access the variables directly before they are shown in `process.env`
leerob marked this conversation as resolved.
Show resolved Hide resolved

```javascript
console.log(process.env);
// { NEXT_RUNTIME: 'edge' }
console.log(process.env.TEST_VARIABLE);
// { NEXT_RUNTIME: 'edge', TEST_VARIABLE: 'value' }
```

## Unsupported APIs

The Edge Runtime has some restrictions including:
Expand Down