Skip to content

Commit 4a6b095

Browse files
authored
ref(js-aws-lambda): Reword installation method selection (#13228)
* ref(js-aws-lambda): Reword installation method selection * more cleanup
1 parent b2d3455 commit 4a6b095

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

docs/platforms/javascript/guides/aws-lambda/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ On this page you'll get an overview how to install, configure and use Sentry in
2020

2121
## Installation
2222

23-
Depending on your setup, there are different ways to install and use Sentry in your Lambda functions. We recommend one of the following options:
23+
Depending on your setup, there are different ways to install and use Sentry in your Lambda functions:
2424

25-
- [Install the Sentry AWS Lambda Layer](./install/cjs-layer) if your Lambda functions are written in CommonJS (CJS) using `require` syntax.
26-
- [Install the Sentry AWS NPM package](./install/esm-npm) if your Lambda functions are running in EcmaScript Modules (ESM) using `import` syntax.
25+
- If your Lambda functions are running in CommonJS (CJS) using `require` syntax, [install the Sentry AWS Lambda Layer](./install/cjs-layer)
26+
- If your Lambda functions are running in EcmaScript Modules (ESM) using `import` syntax, [install the Sentry AWS NPM package](./install/esm-npm)
2727

2828
If you're not sure which installation method to use or want an overview of all available options to use Sentry in your Lambda functions, read the [installation methods overview](./install).
2929

docs/platforms/javascript/guides/aws-lambda/install/index.mdx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ sidebar_order: 1
44
description: "Review all installation methods for using Sentry in AWS Lambda functions"
55
---
66

7-
<PageGrid />
87

9-
## How To Decide Which Installation Method To Use
8+
## Which Installation Method Should I Use?
109

1110
Choosing the right installation method for using Sentry in your AWS Lambda functions depends on a couple of factors.
1211

@@ -15,16 +14,16 @@ For Sentry to work correctly, you need to follow the guide for the format in whi
1514

1615
### My Lambda function is written in TypeScript
1716

18-
If you're using TypeScript, your lambda function is likely transpiled to CommonJS before running it. In this case, you should follow the CommonJS instructions.
19-
Note that TypeScript can also be configured to output ESM, in which case you should follow the ESM instructions.
17+
If you're using TypeScript, your lambda function is likely transpiled to CommonJS before running it. In this case, follow the [CommonJS instructions](#my-lambda-function-uses-require).
18+
Note that TypeScript can also be configured to output ESM, in which case you should follow the [ESM instructions](#my-lambda-function-uses-import).
2019

2120
### My Lambda function uses `require`
2221

23-
If you are using `require()` in your function, you should follow the CommonJS instructions. You can choose between manually setting up Sentry or using the Lambda Layer.
22+
If you are using `require()` in your function, follow the CommonJS instructions. Choose between [using our Lambda Layer (recommended)](./cjs-layer) or [installing the Sentry AWS NPM package](./cjs-layer).
2423

2524
### My Lambda function uses `import`
2625

27-
If you're using `import` syntax in your function and you're _not_ transpiling the code to CommonJS, you should follow the ESM instructions.
26+
If you're using `import` syntax in your function and you're _not_ transpiling the code to CommonJS, follow the [ESM instructions](./esm-npm).
2827

2928
### Can I use the Lambda layer for ESM functions?
3029

0 commit comments

Comments
 (0)