diff --git a/static/app/gettingStartedDocs/javascript-tanstackstart-react/onboarding.tsx b/static/app/gettingStartedDocs/javascript-tanstackstart-react/onboarding.tsx
index 5a62c2732ed4ad..15aecf6be93113 100644
--- a/static/app/gettingStartedDocs/javascript-tanstackstart-react/onboarding.tsx
+++ b/static/app/gettingStartedDocs/javascript-tanstackstart-react/onboarding.tsx
@@ -160,35 +160,45 @@ Sentry.init({
],
},
{
- type: 'conditional',
- condition: params.isPerformanceSelected,
- content: [
+ type: 'alert',
+ alertType: 'warning',
+ showIcon: true,
+ text: tct(
+ "If you can't use the [code:--import] flag (e.g. in serverless environments like Vercel or Netlify), follow the [link:TanStack Start React guide] for alternative setup instructions.",
{
- type: 'text',
- text: tct(
- 'To enable tracing for server-side requests, you need to explicitly define a [serverEntryLink:server entry point] in your application and wrap your request handler with [code:wrapFetchWithSentry].',
- {
- code: ,
- serverEntryLink: (
-
- ),
- }
+ code: ,
+ link: (
+
),
- },
+ }
+ ),
+ },
+ {
+ type: 'text',
+ text: tct(
+ 'To capture server-side errors and traces, explicitly define a [serverEntryLink:server entry point] in your application and wrap your request handler with [code:wrapFetchWithSentry].',
{
- type: 'text',
- text: tct('Create a [code:src/server.ts] file in your project:', {
- code: ,
- }),
- },
+ code: ,
+ serverEntryLink: (
+
+ ),
+ }
+ ),
+ },
+ {
+ type: 'text',
+ text: tct('Create a [code:src/server.ts] file in your project:', {
+ code: ,
+ }),
+ },
+ {
+ type: 'code',
+ tabs: [
{
- type: 'code',
- tabs: [
- {
- label: 'TypeScript',
- language: 'typescript',
- filename: 'src/server.ts',
- code: `import { wrapFetchWithSentry } from "@sentry/tanstackstart-react";
+ label: 'TypeScript',
+ language: 'typescript',
+ filename: 'src/server.ts',
+ code: `import { wrapFetchWithSentry } from "@sentry/tanstackstart-react";
import handler, { createServerEntry } from "@tanstack/react-start/server-entry";
export default createServerEntry(
@@ -198,8 +208,6 @@ export default createServerEntry(
},
})
);`,
- },
- ],
},
],
},