diff --git a/docs/platforms/javascript/guides/aws-lambda/install/esm-npm.mdx b/docs/platforms/javascript/guides/aws-lambda/install/esm-npm.mdx index e43936ded07dae..6897e1cc6f4898 100644 --- a/docs/platforms/javascript/guides/aws-lambda/install/esm-npm.mdx +++ b/docs/platforms/javascript/guides/aws-lambda/install/esm-npm.mdx @@ -142,7 +142,7 @@ export const handler = Sentry.wrapHandler(async (event, context) => { To load the SDK before your function starts, you need to preload the `instrument.mjs` by setting the `NODE_OPTIONS` environment variable: ```bash -NODE_OPTIONS="--import instrument.mjs" +NODE_OPTIONS="--import ./instrument.mjs" ``` To set environment variables, navigate to your Lambda function, select **Configuration**, then **Environment variables**: