diff --git a/docs/platforms/javascript/guides/aws-lambda/install/cjs-npm__v9.x.mdx b/docs/platforms/javascript/guides/aws-lambda/install/cjs-npm__v9.x.mdx index 1418e777f7d9d..10b3beff0a552 100644 --- a/docs/platforms/javascript/guides/aws-lambda/install/cjs-npm__v9.x.mdx +++ b/docs/platforms/javascript/guides/aws-lambda/install/cjs-npm__v9.x.mdx @@ -11,7 +11,7 @@ In this guide you will learn how to set up the `@sentry/aws-serverless` SDK for We recommend starting the SDK automatically via environment variables so that you only have to make minimal code changes to your lambda function. If you need more control over the SDK setup, you can also [initialize the SDK in in code](#alternative-initialize-the-sdk-in-code). -However, you need to modify your code and deploy the Sentry dependencies alongside your function code. If you're looking for the most simple way to set up Sentry, you might want to use the [Lambda Layer](./layer__v9.x.mdx) instead. +However, you need to modify your code and deploy the Sentry dependencies alongside your function code. If you're looking for the most simple way to set up Sentry, you might want to use the [Lambda Layer](./layer__v9.x) instead. ## 1. Prerequisites diff --git a/docs/platforms/javascript/guides/aws-lambda/install/index__v9.x.mdx b/docs/platforms/javascript/guides/aws-lambda/install/index__v9.x.mdx index 27303bf92530b..cd9f4ec6976d9 100644 --- a/docs/platforms/javascript/guides/aws-lambda/install/index__v9.x.mdx +++ b/docs/platforms/javascript/guides/aws-lambda/install/index__v9.x.mdx @@ -18,11 +18,11 @@ Note that TypeScript can also be configured to output ESM, in which case you sho ### My Lambda function uses `require` -If you are using `require()` in your function, follow the CommonJS instructions. Choose between [using our Lambda Layer (recommended)](./install/layer__v9.x.mdx) or [installing the Sentry AWS NPM package](./install/npm__v9.x.mdx). +If you are using `require()` in your function, follow the CommonJS instructions. Choose between [using our Lambda Layer (recommended)](./layer__v9.x) or [installing the Sentry AWS NPM package](./npm__v9.x). ### My Lambda function uses `import` -If you're using `import` syntax in your function and you're _not_ transpiling the code to CommonJS, follow the [ESM instructions](./install/esm-npm__v9.x.mdx). +If you're using `import` syntax in your function and you're _not_ transpiling the code to CommonJS, follow the [ESM instructions](./esm-npm__v9.x). ### Can I use the Lambda layer for ESM functions? diff --git a/docs/platforms/javascript/guides/aws-lambda/install/layer__v9.x.mdx b/docs/platforms/javascript/guides/aws-lambda/install/layer__v9.x.mdx index 56b72c91a802c..bf7b9d8fa047f 100644 --- a/docs/platforms/javascript/guides/aws-lambda/install/layer__v9.x.mdx +++ b/docs/platforms/javascript/guides/aws-lambda/install/layer__v9.x.mdx @@ -7,13 +7,13 @@ sidebar_order: 1 og_image: /og-images/platforms-javascript-guides-aws-lambda-install-layer__v9.x.png --- -The easiest way to get started with Sentry is to use the Sentry [Lambda Layer](https://docs.aws.amazon.com/lambda/latest/dg/adding-layers.html) instead of adding `@sentry/aws-serverless` with `npm` or `yarn` [manually](./npm__v9.x.mdx). +The easiest way to get started with Sentry is to use the Sentry [Lambda Layer](https://docs.aws.amazon.com/lambda/latest/dg/adding-layers.html) instead of adding `@sentry/aws-serverless` with `npm` or `yarn` [manually](./npm__v9.x). If you follow this guide, you don't have to worry about deploying Sentry dependencies alongside your function code. To actually start the SDK, you can decide between setting up the SDK using environment variables or in your Lambda function code. We recommend using environment variables as it's the easiest way to get started. [Initializing the SDK in code](#alternative-initialize-the-sdk-in-code) instead of setting environment variables gives you more control over the SDK setup if you need it. -This installation method **does not** work with Lambda functions running in EcmaScript Modules (ESM) mode, using `import` syntax. If you're running your function in ESM, follow the [ESM guide](../npm__v9.x.mdx). +This installation method **does not** work with Lambda functions running in EcmaScript Modules (ESM) mode, using `import` syntax. If you're running your function in ESM, follow the [ESM guide](./esm-npm__v9.x). diff --git a/docs/platforms/javascript/guides/aws-lambda/install/npm__v9.x.mdx b/docs/platforms/javascript/guides/aws-lambda/install/npm__v9.x.mdx index ecbc8c578957c..b6fec3a516705 100644 --- a/docs/platforms/javascript/guides/aws-lambda/install/npm__v9.x.mdx +++ b/docs/platforms/javascript/guides/aws-lambda/install/npm__v9.x.mdx @@ -8,13 +8,13 @@ Based on whether your Lambda function runs in CommonJS or ESM, you need to follo ## My Lambda function is written in TypeScript -If you're using TypeScript, your lambda function is likely transpiled to CommonJS before running it. In this case, follow the [CommonJS instructions](./cjs-npm__v9.x.mdx). -Note that TypeScript can also be configured to output ESM, in which case you should follow the [ESM instructions](./esm-npm__v9.x.mdx). +If you're using TypeScript, your lambda function is likely transpiled to CommonJS before running it. In this case, follow the [CommonJS instructions](./cjs-npm__v9.x). +Note that TypeScript can also be configured to output ESM, in which case you should follow the [ESM instructions](./esm-npm__v9.x). ## My Lambda function uses `require` -If you are using `require()` in your function, follow the [CommonJS instructions](./cjs-npm__v9.x.mdx). +If you are using `require()` in your function, follow the [CommonJS instructions](./cjs-npm__v9.x). ## My Lambda function uses `import` -If you're using `import` syntax in your function and you're _not_ transpiling the code to CommonJS, follow the [ESM instructions](./esm-npm__v9.x.mdx). +If you're using `import` syntax in your function and you're _not_ transpiling the code to CommonJS, follow the [ESM instructions](./esm-npm__v9.x). diff --git a/scripts/lint-404s/ignore-list.txt b/scripts/lint-404s/ignore-list.txt index 17a5d5eae18e3..cd94fccd82a1c 100644 --- a/scripts/lint-404s/ignore-list.txt +++ b/scripts/lint-404s/ignore-list.txt @@ -1,2 +1,9 @@ / /changelog/ +/platforms/javascript/guides/aws-lambda/install/layer__v9.x +/platforms/javascript/guides/aws-lambda/install/npm__v9.x +/platforms/javascript/guides/aws-lambda/install/cjs-npm__v9.x +/platforms/javascript/guides/aws-lambda/install/esm-npm__v9.x +/platforms/javascript/guides/aws-lambda/install/index__v9.x +/platforms/javascript/guides/aws-lambda/install/layer__v8.x +/platforms/javascript/guides/aws-lambda/install/layer__v7.x