Skip to content

Commit

Permalink
feat(onboarding): change serverless v8 onboarding (#70326)
Browse files Browse the repository at this point in the history
Updates the code snippets to show the new serverless packages for aws
and gcp.
  • Loading branch information
s1gr1d committed May 16, 2024
1 parent bed18aa commit 7bb9d01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions static/app/utils/gettingStartedDocs/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ export function getDefaultServerlessImports({
library: `google-cloud-serverless` | `aws-serverless`;
productSelection: ProductSelectionMap;
}) {
const imports: string[] = getImport(library);

const imports: string[] = [
`// You can also use ESM \`import * as Sentry from "@sentry/${library}"\` instead of \`require\``,
`const Sentry = require("@sentry/${library}");`,
];
if (productSelection.profiling) {
imports.push(
`const { nodeProfilingIntegration } = require("@sentry/profiling-node");`
Expand Down

0 comments on commit 7bb9d01

Please sign in to comment.