Unverified Commit 7e387f0f authored by Vyacheslav Matyukhin's avatar Vyacheslav Matyukhin Committed by GitHub

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.
parent 3766cff9
...@@ -63,8 +63,12 @@ export async function getStaticProps() { ...@@ -63,8 +63,12 @@ export async function getStaticProps() {
> ```bash > ```bash
> # .env > # .env
> A=abc > 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 ## Exposing Environment Variables to the Browser
......
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