Avoid misleading inline comments in .env example (#19708)

dotenv currently doesn't support inline comments (see https://github.com/motdotla/dotenv/issues/484), so it's misleading to use inline comments in documentation examples.
This commit is contained in:
Vyacheslav Matyukhin 2020-12-01 20:34:05 +03:00 committed by GitHub
parent 3766cff9b7
commit 7e387f0fce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,8 +63,12 @@ export async function getStaticProps() {
> ```bash
> # .env
> A=abc
> WRONG=pre$A # becomes "preabc"
> CORRECT=pre\$A # becomes "pre$A"
>
> # becomes "preabc"
> WRONG=pre$A
>
> # becomes "pre$A"
> CORRECT=pre\$A
> ```
## Exposing Environment Variables to the Browser