{tct( 'In this quick guide you’ll use [strong:npm], [strong:yarn] or [strong:pnpm] to set up:', { strong: , } )}
}
),
code: [
{
label: 'TypeScript',
value: 'typescript',
language: 'typescript',
filename: 'nuxt.config.ts',
code: getNuxtModuleSnippet(),
},
],
},
{
description: tct(
'For the client, create a [codeFile:sentry.client.config.ts] file in your project root and initialize the Sentry SDK:',
{codeFile:
}
),
code: [
{
label: 'TypeScript',
value: 'typescript',
language: 'typescript',
filename: 'sentry.client.config.ts',
code: getSdkClientSetupSnippet(params),
},
],
},
{
description: (
{tct(
'For the server, create a [codeFile:sentry.server.config.ts] file in your project root and initialize the Sentry SDK:',
{codeFile: }
)}
,
}
),
configurations: getInstallConfig(),
},
],
configure: (params: Params) => [
{
type: StepType.CONFIGURE,
description: getReplayConfigureDescription({
link: 'https://docs.sentry.io/platforms/javascript/guides/nuxt/session-replay/',
}),
configurations: [
{
code: [
{
label: 'JavaScript',
value: 'javascript',
language: 'javascript',
code: getSdkClientSetupSnippet(params),
},
],
additionalInfo:
,
}
),
configurations: getInstallConfig(),
},
],
configure: (params: Params) => [
{
type: StepType.CONFIGURE,
description: getFeedbackConfigureDescription({
linkConfig:
'https://docs.sentry.io/platforms/javascript/guides/nuxt/user-feedback/configuration/',
linkButton:
'https://docs.sentry.io/platforms/javascript/guides/nuxt/user-feedback/configuration/#bring-your-own-button',
}),
configurations: [
{
code: [
{
label: 'JavaScript',
value: 'javascript',
language: 'javascript',
code: getSdkClientSetupSnippet(params),
},
],
},
],
additionalInfo: crashReportCallout({
link: 'https://docs.sentry.io/platforms/nuxt/guides/nuxt/user-feedback/#crash-report-modal',
}),
},
],
verify: () => [],
nextSteps: () => [],
};
const crashReportOnboarding: OnboardingConfig = {
introduction: () => getCrashReportModalIntroduction(),
install: (params: Params) => getCrashReportJavaScriptInstallStep(params),
configure: () => [
{
type: StepType.CONFIGURE,
description: getCrashReportModalConfigDescription({
link: 'https://docs.sentry.io/platforms/javascript/guides/nuxt/user-feedback/configuration/#crash-report-modal',
}),
additionalInfo: widgetCallout({
link: 'https://docs.sentry.io/platforms/javascript/guides/nuxt/user-feedback/#user-feedback-widget',
}),
},
],
verify: () => [],
nextSteps: () => [],
};
const profilingOnboarding: OnboardingConfig = {
...onboarding,
introduction: params =>