Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions static/app/gettingStartedDocs/javascript/nextjs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@ import {trackAnalytics} from 'sentry/utils/analytics';

type Params = DocsParams;

const getInstallSnippet = ({isSelfHosted, urlPrefix}: Params) => {
const getInstallSnippet = ({
isSelfHosted,
urlPrefix,
organization,
projectSlug,
}: Params) => {
const urlParam = !isSelfHosted && urlPrefix ? `--url ${urlPrefix}` : '';
return `npx @sentry/wizard@latest -i nextjs ${urlParam}`;
return `npx @sentry/wizard@latest -i nextjs ${urlParam} --org ${organization.slug} --project ${projectSlug}`;
};

const getInstallConfig = (params: Params) => {
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/javascript/remix.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {t, tct} from 'sentry/locale';

type Params = DocsParams;

const getConfigStep = ({isSelfHosted, urlPrefix}: Params) => {
const getConfigStep = ({isSelfHosted, urlPrefix, organization, projectSlug}: Params) => {
const urlParam = !isSelfHosted && urlPrefix ? `--url ${urlPrefix}` : '';
return [
{
Expand All @@ -42,7 +42,7 @@ const getConfigStep = ({isSelfHosted, urlPrefix}: Params) => {
}
),
language: 'bash',
code: `npx @sentry/wizard@latest -i remix ${urlParam}`,
code: `npx @sentry/wizard@latest -i remix ${urlParam} --org ${organization.slug} --project ${projectSlug}`,
},
];
};
Expand Down
9 changes: 7 additions & 2 deletions static/app/gettingStartedDocs/javascript/sveltekit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ import {t, tct} from 'sentry/locale';

type Params = DocsParams;

const getInstallConfig = ({isSelfHosted, urlPrefix}: Params) => {
const getInstallConfig = ({
isSelfHosted,
urlPrefix,
organization,
projectSlug,
}: Params) => {
const urlParam = !isSelfHosted && urlPrefix ? `--url ${urlPrefix}` : '';

return [
Expand All @@ -46,7 +51,7 @@ const getInstallConfig = ({isSelfHosted, urlPrefix}: Params) => {
configurations: [
{
language: 'bash',
code: `npx @sentry/wizard@latest -i sveltekit ${urlParam}`,
code: `npx @sentry/wizard@latest -i sveltekit ${urlParam} --org ${organization.slug} --project ${projectSlug}`,
},
],
},
Expand Down
Loading