,
serverCode:
,
edgeCode:
,
sentryInitCode:
,
}
)}
,
}
)}
,
}
)}
,
}
)}
{tct(
'Alternatively, you can also [manualSetupLink:set up the SDK manually].',
{
manualSetupLink: (
{tct(
"If you already have the configuration for Sentry in your application, and just need this project's ([projectSlug]) DSN, you can find it below:",
{
projectSlug: {params.projectSlug}
,
}
)}
,
instrumentation:
,
}
)}
,
}
),
configurations: getInstallConfig(),
},
],
configure: (params: Params) => [
{
type: StepType.CONFIGURE,
description: getFeedbackConfigureDescription({
linkConfig:
'https://docs.sentry.io/platforms/javascript/guides/nextjs/user-feedback/configuration/',
linkButton:
'https://docs.sentry.io/platforms/javascript/guides/nextjs/user-feedback/configuration/#bring-your-own-button',
}),
configurations: [
{
code: [
{
label: 'JavaScript',
value: 'javascript',
language: 'javascript',
code: getFeedbackSDKSetupSnippet({
importStatement: `import * as Sentry from "@sentry/nextjs";`,
dsn: params.dsn.public,
feedbackOptions: params.feedbackOptions,
}),
},
],
},
],
additionalInfo: (
,
instrumentation:
,
}
)}