Skip to content

Commit

Permalink
Update information about env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
RaeesBhatti committed Mar 13, 2020
1 parent 9781407 commit 12e1b18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/netlify-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,10 @@ See the [Redirects Documentation](https://www.netlify.com/docs/redirects/) for m
## Environment Variables
Netlify Dev supports local environment variables through `.env` files.
Netlify Dev will look in project root directory and each of your JavaScript based Netlify Functions directories for
`.env` file and will provide those variables to the spawned site generator/server and Netlify Functions.
If the current project is linked to a Netlify site (`netlify link`), enviornment variables are pulled down from production and populated in `netlify dev` server. This functionality requires that you're logged in (`netlify login`) and connected to the internet when running `netlify dev`.

Netlify Dev also supports local environment variables through `.env` files.
Netlify Dev will look in project root directory for `.env` file and will provide those variables to the spawned site generator/server and Netlify Functions.

## Netlify Functions

Expand Down

0 comments on commit 12e1b18

Please sign in to comment.