Browse Source

feat(onboarding): Replace wizard url flag with saas flag (#78248)

Relates to https://github.com/getsentry/sentry-wizard/pull/678
Matej Minar 5 months ago
parent
commit
c092e3903a

+ 1 - 2
static/app/components/onboarding/gettingStartedDoc/utils/index.tsx

@@ -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: (

+ 2 - 7
static/app/gettingStartedDocs/javascript/nextjs.tsx

@@ -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}`;
 };
 

+ 2 - 2
static/app/gettingStartedDocs/javascript/remix.tsx

@@ -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(

+ 2 - 7
static/app/gettingStartedDocs/javascript/sveltekit.tsx

@@ -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 [
     {