You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-11Lines changed: 9 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -23,13 +23,7 @@ If this sounds confusing, support is available through [our regular channels](ht
23
23
### When to use Netlify Dev or `netlify-lambda` or both?
24
24
25
25
<details>
26
-
<summary>
27
-
28
-
29
-
[`Netlify Dev`](https://github.com/netlify/netlify-dev-plugin#what-is-netlify-dev) is incrementally adoptable. **Use `netlify-lambda` only if you need a build step for your functions**
30
-
31
-
</summary>
32
-
26
+
<summary><ahref="https://github.com/netlify/netlify-dev-plugin#what-is-netlify-dev">Netlify Dev</a> is incrementally adoptable. <b>Use `netlify-lambda` only if you need a build step for your functions.</b> Expand this to read more on when to use either or both</summary>
33
27
34
28
35
29
-**When to use Netlify Dev**: Part of Netlify Dev serves unbundled function folders through [zip-it-and-ship-it](https://github.com/netlify/zip-it-and-ship-it) with no build step. This is likely to be attractive to many users who previously just needed `netlify-lambda` for bundling multi-file functions or functions with node_module dependencies.
@@ -67,9 +61,11 @@ If you don't have a [`netlify.toml`](https://www.netlify.com/docs/netlify-toml-r
67
61
We expose three commands:
68
62
69
63
```bash
70
-
netlify-lambda serve <folder>
71
64
netlify-lambda build <folder>
72
65
netlify-lambda install [folder]
66
+
67
+
## legacy command - only preserved for backward compatibility
68
+
netlify-lambda serve <folder>
73
69
```
74
70
75
71
### `netlify-lambda install`
@@ -169,11 +165,11 @@ export async function handler(event, context) {
169
165
170
166
</details>
171
167
172
-
### `netlify-lambda serve`
168
+
### `netlify-lambda serve` (legacy command)
173
169
174
170
This command is pretty much superceded by Netlify Dev. We only keep it around for legacy/backward compatibility support reasons.
175
171
176
-
#### `netlify-lambda serve`: Using with `create-react-app`, Gatsby, and other development servers
172
+
#### `netlify-lambda serve` (legacy command): Using with `create-react-app`, Gatsby, and other development servers
177
173
178
174
<details>
179
175
<summary><b>Why you need to proxy (for beginners)</b></summary>
@@ -186,7 +182,7 @@ If this desribes your situation, then you need to proxy for local development. R
186
182
187
183
</details>
188
184
189
-
#### `netlify-lambda serve`: Proxying for local development
185
+
#### `netlify-lambda serve` (legacy command): Proxying for local development
190
186
191
187
> ⚠️IMPORTANT! PLEASE READ THIS ESPECIALLY IF YOU HAVE CORS ISSUES⚠️
192
188
@@ -548,6 +544,8 @@ All of the above are community maintained and not officially supported by Netlif
- v1.4: New timeout feature https://github.com/netlify/netlify-lambda/pull/116
547
+
- v1.5: Catch raw requests - a very common error for first time users pinging `localhost:9000` instead of `localhost:9000/.netlify/functions/myfunction`https://github.com/netlify/netlify-lambda/commit/bfebc0921a45d4f730b910b680e40e04928f7c29#diff-3288939317efd62bfc509440d662cacaR191
548
+
- v1.6: New `install` command https://mobile.twitter.com/swyx/status/1162038490298818562
0 commit comments