Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit c70f0ed

Browse files
author
sw-yx
committed
readme
1 parent a66a95d commit c70f0ed

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,16 @@ $ netlify functions:create --name hello-world # same
167167
$ netlify functions:create hello-world --url https://github.com/netlify-labs/all-the-functions/tree/master/functions/9-using-middleware
168168
```
169169
170+
**Deploying unbundled function folders**
171+
172+
Functions that have `node_modules` inside their own folders require these `node_modules` to be installed when deployed. For the time being, the Netlify build process does not recursively install dependencies for your function folders yet. So the recommended way to deploy these functions is to use the CLI command:
173+
174+
```
175+
netlify deploy --prod
176+
```
177+
178+
Opt out of the continuous deployment flow and use [zip-it-and-ship-it](https://github.com/netlify/zip-it-and-ship-it) instead. [Follow this issue for more updates](https://github.com/netlify/netlify-dev-plugin/issues/140).
179+
170180
**Writing your own Function Templates**
171181
172182
Function templates can specify `addons` that they rely on as well as execute arbitrary code after installation in an `onComplete` hook, if a special `.netlify-function-template.js` file exists in the directory:

0 commit comments

Comments
 (0)