Skip to content

Commit

Permalink
docs(env variables): small wording change (can => have to) (vercel#13757
Browse files Browse the repository at this point in the history
)

When reading
"In order to expose a variable to the browser you can prefix the variable with NEXT_PUBLIC_. For example:"

I thought that I could maybe use something else than NEXT_PUBLIC_. I guess "have to" or similar would be better here, let me know
  • Loading branch information
vvo authored and rokinsky committed Jul 11, 2020
1 parent 0731151 commit e7504ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/basic-features/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function getStaticProps() {

By default all environment variables loaded through `.env.local` are only available in the Node.js environment, meaning they won't be exposed to the browser.

In order to expose a variable to the browser you can prefix the variable with `NEXT_PUBLIC_`. For example:
In order to expose a variable to the browser you have to prefix the variable with `NEXT_PUBLIC_`. For example:

```bash
NEXT_PUBLIC_ANALYTICS_ID=abcdefghijk
Expand Down

0 comments on commit e7504ed

Please sign in to comment.