Skip to content

Commit 2aae768

Browse files
authored
Update esm-npm.mdx to show correct config with AWS Lambda (#13217)
The `NODE_OPTIONS: "--import instrument.mjs"` example needs to be `NODE_OPTIONS: "--import ./instrument.mjs"` to work correctly. The example image is correct, but the docs are not.
1 parent 7897b05 commit 2aae768

File tree

1 file changed

+1
-1
lines changed
  • docs/platforms/javascript/guides/aws-lambda/install

1 file changed

+1
-1
lines changed

docs/platforms/javascript/guides/aws-lambda/install/esm-npm.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export const handler = Sentry.wrapHandler(async (event, context) => {
142142
To load the SDK before your function starts, you need to preload the `instrument.mjs` by setting the `NODE_OPTIONS` environment variable:
143143

144144
```bash
145-
NODE_OPTIONS="--import instrument.mjs"
145+
NODE_OPTIONS="--import ./instrument.mjs"
146146
```
147147

148148
To set environment variables, navigate to your Lambda function, select **Configuration**, then **Environment variables**:

0 commit comments

Comments
 (0)