Skip to content

Commit 6c9b4bf

Browse files
authored
add reference
add reference to #118
1 parent 711b695 commit 6c9b4bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,18 @@ It also watches your files and restarts the dev server on change. Note: if you a
6666
- Function signatures follow the [AWS event handler](https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html) syntax but must be named `handler`. [We use Node v8](https://www.netlify.com/blog/2018/04/03/node.js-8.10-now-available-in-netlify-functions/) so `async` functions **are** supported ([beware common mistakes](https://serverless.com/blog/common-node8-mistakes-in-lambda/)!). Read [Netlify Functions docs](https://www.netlify.com/docs/functions/#javascript-lambda-functions) for more info.
6767

6868
<details>
69-
<summary><b>Environment variables in build and branch context</b>
69+
<summary><b>Environment variables in build and branch context</b></summary>
7070

7171
Read Netlify's [documentation on environment variables](https://www.netlify.com/docs/continuous-deployment/#build-environment-variables).
7272
`netlify-lambda` should respect the env variables you supply in `netlify.toml` accordingly (except for deploy previews, which make no sense to locally emulate).
7373

7474
However, this is a [relatively new feature](https://github.com/netlify/netlify-lambda/issues/59), so if you encounter issues, file one.
7575

76+
If you need local-only environment variables that you don't place in `netlify.toml` for security reasons, you can configure webpack to use a `.env` file [like in this example](https://github.com/netlify/netlify-lambda/issues/118).
77+
7678
</details>
79+
80+
7781
<summary>
7882
<b>Lambda function examples</b>
7983
</summary>

0 commit comments

Comments
 (0)