Skip to content

Commit

Permalink
feat(onboarding): Replace wizard url flag with saas flag (#78248)
Browse files Browse the repository at this point in the history
  • Loading branch information
matejminar authored Sep 27, 2024
1 parent 1ec26a1 commit c092e39
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ export function getUploadSourceMapsStep({
projectId,
newOrg,
isSelfHosted,
urlPrefix,
}: DocsParams & {
guideLink: string;
}) {
const urlParam = !isSelfHosted && urlPrefix ? `--url ${urlPrefix}` : '';
const urlParam = isSelfHosted ? '' : '--saas';
return {
title: t('Upload Source Maps'),
description: (
Expand Down
9 changes: 2 additions & 7 deletions static/app/gettingStartedDocs/javascript/nextjs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,8 @@ import {trackAnalytics} from 'sentry/utils/analytics';

type Params = DocsParams;

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

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,8 +29,8 @@ import {t, tct} from 'sentry/locale';

type Params = DocsParams;

const getConfigStep = ({isSelfHosted, urlPrefix, organization, projectSlug}: Params) => {
const urlParam = !isSelfHosted && urlPrefix ? `--url ${urlPrefix}` : '';
const getConfigStep = ({isSelfHosted, organization, projectSlug}: Params) => {
const urlParam = isSelfHosted ? '' : '--saas';
return [
{
description: tct(
Expand Down
9 changes: 2 additions & 7 deletions static/app/gettingStartedDocs/javascript/sveltekit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,8 @@ import {t, tct} from 'sentry/locale';

type Params = DocsParams;

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

return [
{
Expand Down

0 comments on commit c092e39

Please sign in to comment.