|
@@ -1,8 +1,7 @@
|
|
|
import Alert from 'sentry/components/alert';
|
|
|
import ExternalLink from 'sentry/components/links/externalLink';
|
|
|
+import type {DocsParams} from 'sentry/components/onboarding/gettingStartedDoc/types';
|
|
|
import {t, tct} from 'sentry/locale';
|
|
|
-import type {Organization} from 'sentry/types/organization';
|
|
|
-import type {PlatformKey} from 'sentry/types/project';
|
|
|
import {trackAnalytics} from 'sentry/utils/analytics';
|
|
|
|
|
|
export function getUploadSourceMapsStep({
|
|
@@ -11,13 +10,12 @@ export function getUploadSourceMapsStep({
|
|
|
platformKey,
|
|
|
projectId,
|
|
|
newOrg,
|
|
|
-}: {
|
|
|
+ isSelfHosted,
|
|
|
+ urlPrefix,
|
|
|
+}: DocsParams & {
|
|
|
guideLink: string;
|
|
|
- newOrg?: boolean;
|
|
|
- organization?: Organization;
|
|
|
- platformKey?: PlatformKey;
|
|
|
- projectId?: string;
|
|
|
}) {
|
|
|
+ const urlParam = !isSelfHosted && urlPrefix ? `--url ${urlPrefix}` : '';
|
|
|
return {
|
|
|
title: t('Upload Source Maps'),
|
|
|
description: (
|
|
@@ -33,7 +31,7 @@ export function getUploadSourceMapsStep({
|
|
|
configurations: [
|
|
|
{
|
|
|
language: 'bash',
|
|
|
- code: `npx @sentry/wizard@latest -i sourcemaps`,
|
|
|
+ code: `npx @sentry/wizard@latest -i sourcemaps ${urlParam}`,
|
|
|
onCopy: () => {
|
|
|
if (!organization || !projectId || !platformKey) {
|
|
|
return;
|