Skip to content

Commit

Permalink
chore(docs): Add additional hints to serverless functions (#11751)
Browse files Browse the repository at this point in the history
Co-authored-by: Tobbe Lundberg <[email protected]>
  • Loading branch information
dennemark and Tobbe authored Dec 12, 2024
1 parent 8e1644a commit 424c6bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/docs/serverless-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ Content-Type: application/json

### Other security considerations

In addition to securing your serverless functions, you may consider logging, rate limiting and whitelisting as ways to protect your functions from abuse or misuse.
In addition to securing your serverless functions, you may consider logging, rate limiting and whitelisting as ways to protect your functions from abuse or misuse. Some of these benefits can be achieved with middleware like [middy](https://middy.js.org/), since our functions should be compatible with the lambda functions ecosystem.

#### Visibility via Logging

Expand Down Expand Up @@ -916,3 +916,7 @@ export const handler = async (event: APIGatewayEvent, context: Context) => {
}
}
```
## How-To
We have prepared a simple [How-To](how-to/custom-function/) for you on how to setup a custom function to retrieve the server time, including consideration of CORS.

0 comments on commit 424c6bf

Please sign in to comment.