Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netlify Dev: Add support for .env files #714

Merged
merged 4 commits into from
Feb 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/netlify-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ The order of precedence for applying redirect rules is:

See the [Redirects Documentation](https://www.netlify.com/docs/redirects/) for more information on Netlify's redirect and proxying capabilities.

## 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.

## Netlify Functions

Netlify can also create serverless functions for you locally as part of Netlify Functions. The serverless functions can then be run by Netlify Dev in the same way that wold be when deployed to the cloud.
Expand Down
Loading