rsnext/docs/basic-features
Paul van den Dool 9039afe75b
Update to environment-variable.md (#26863)
## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [x] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.

## Documentation / Examples

- [ ] Make sure the linting passes

## Why the change
I lost quite a few hours figuring out why my environment variable was `undefined` in the browser.
I read about the built-in support and was like: "Oh nice" and didn't read much further. I missed the part about how you need to prefix your variables with `NEXT_PUBLIC_` in order to expose them to the browser.
I think a hint to this in the anchor link to that section will make it more discoverable as it's then mentioned near the top and will save people who are like me some time and a headache.
2021-07-02 10:35:53 +00:00
..
built-in-css-support.md Remove old docs sections (#24853) 2021-05-06 14:17:00 +02:00
data-fetching.md Enable Alex documentation linting for docs (#26598) 2021-06-25 11:40:50 -05:00
environment-variables.md Update to environment-variable.md (#26863) 2021-07-02 10:35:53 +00:00
eslint.md Docs: Add Prettier section on ESLint page (#26347) 2021-06-20 21:00:57 +00:00
fast-refresh.md Update fast-refresh.md (#18047) 2020-11-16 22:46:43 +00:00
font-optimization.md Land - Font optimizations - Adobe Fonts / Typekit support (#24834) 2021-05-06 04:02:07 +00:00
image-optimization.md Extend disclaimer for dynamic image imports (#26241) 2021-06-18 16:21:12 +02:00
pages.md Enable Alex documentation linting for docs (#26598) 2021-06-25 11:40:50 -05:00
script.md doc: prettify docs for next script (#26572) 2021-06-24 13:41:55 +00:00
static-file-serving.md Update err.sh links to use nextjs.org/docs/messages instead (#23353) 2021-03-29 10:25:00 +02:00
supported-browsers-features.md Documentation updates (#16503) 2020-08-24 02:23:12 +00:00
typescript.md Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00