Skip to content

Commit 85ca04c

Browse files
Apply suggestions from code review
Co-authored-by: forstisabella <[email protected]>
1 parent c3e66e5 commit 85ca04c

File tree

1 file changed

+2
-2
lines changed
  • src/connections/sources/catalog/libraries/server/node

1 file changed

+2
-2
lines changed

src/connections/sources/catalog/libraries/server/node/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ Setting | Details
288288
289289
See the complete `AnalyticsSettings` interface [here](https://github.com/segmentio/analytics-next/blob/master/packages/node/src/app/settings.ts){:target="_blank"}.
290290
291-
## Usage in AWS Lambda, Vercel Edge Functions, Cloudflare Workers, or other serverless environments
291+
## Usage in serverless environments
292292
293293
When calling `.track` within functions in serverless runtime environments, wrap the call in a `Promise` and `await` it to avoid having the runtime exit or freeze:
294294
@@ -298,7 +298,7 @@ await new Promise((resolve) =>
298298
)
299299
```
300300
301-
See the complete documentation on [Usage in AWS Lambda](https://github.com/segmentio/analytics-next/blob/master/packages/node/README.md#usage-in-aws-lambda), [Usage in Vercel Edge Functions](https://github.com/segmentio/analytics-next/blob/master/packages/node/README.md#usage-in-vercel-edge-functions), and [Usage in Cloudflare Workers](https://github.com/segmentio/analytics-next/blob/master/packages/node/README.md#usage-in-cloudflare-workers)
301+
See the complete documentation on [Usage in AWS Lambda](https://github.com/segmentio/analytics-next/blob/master/packages/node/README.md#usage-in-aws-lambda){:target="_blank"}, [Usage in Vercel Edge Functions](https://github.com/segmentio/analytics-next/blob/master/packages/node/README.md#usage-in-vercel-edge-functions){:target="_blank"}, and [Usage in Cloudflare Workers](https://github.com/segmentio/analytics-next/blob/master/packages/node/README.md#usage-in-cloudflare-workers){:target="_blank"}
302302
303303
## Graceful shutdown
304304
Avoid losing events after shutting down your console. Call `.closeAndFlush()` to stop collecting new events and flush all existing events. If a callback on an event call is included, this also waits for all callbacks to be called, and any of their subsequent promises to be resolved.

0 commit comments

Comments
 (0)