Skip to content
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
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,31 @@ Unless a deployConfig. serviceSid is specified, it will try to create one. If a

Updates to the deployment will be emitted as events to status-update.

```js
const result = await client.deployProject({
env: {},
pkgJson: {},
serviceName: 'serverless-example',
functionsEnv: 'dev',
functions: [
{
name: 'hello-world',
path: '/hello-world-path',
content: await readFile(path.join(__dirname, 'some-dir', 'handler.js')),
access: 'public',
},
],
assets: [
{
name: 'image',
path: '/foo/image.jpg',
access: 'public',
content: await readFile(path.join(__dirname, 'another-dir', 'image.jpg')),
},
]
});
```

[More in the Docs](https://serverless-api.twilio-labs.com/classes/_twilio_labs_serverless_api.twilioserverlessapiclient.html#deployproject)

### `client.getClient(): GotClient`
Expand Down
Loading