Skip to content

Commit 22a47a4

Browse files
fix(website): corrected the highlight position for nextjs setup docs (#861)
- Corrected the highlight position on https://spotlightjs.com/setup/nextjs/ <img width="1514" height="1112" alt="image" src="https://github.com/user-attachments/assets/0b0a85e1-cb38-45c3-8287-6eae472c0d5c" /> - 2 comment typos fixed
1 parent 431664c commit 22a47a4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/overlay/src/integrations/sentry/components/insights/Queries.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const Queries = ({ showAll }: { showAll: boolean }) => {
5252
const spans = showAll ? allSpans : localSpans;
5353
const onlyDBSpans = spans.filter((span: Span) => DB_SPAN_REGEX.test(span.op || ""));
5454
const uniqueSpansSet = new Set(onlyDBSpans.map(span => String(span?.description).trim()));
55-
// CLear out empty ones (they collapse as a single empty string since this is a set)
55+
// Clear out empty ones (they collapse as a single empty string since this is a set)
5656
uniqueSpansSet.delete("");
5757
return [...uniqueSpansSet]
5858
.map(query => calculateQueryInfo({ query, spanData: onlyDBSpans }))

packages/overlay/src/integrations/sentry/components/insights/Resources.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const Resources = ({ showAll }: { showAll: boolean }) => {
7575
const resources = useMemo(() => {
7676
const filteredResourceSpans = getResourceSpans(showAll ? allSpans : localSpans, { regex: /resource\.[A-Za-z]+/ });
7777
const uniqueResourceDescriptionsSet = new Set(filteredResourceSpans.map(span => String(span?.description).trim()));
78-
// CLear out empty ones (they collapse as a single empty string since this is a set)
78+
// Clear out empty ones (they collapse as a single empty string since this is a set)
7979
uniqueResourceDescriptionsSet.delete("");
8080
const uniqueResourceDescriptions: string[] = [...uniqueResourceDescriptionsSet];
8181
const compareResourceInfo = COMPARATORS[sort.active] || COMPARATORS[RESOURCES_SORT_KEYS.totalTime];

packages/website/src/content/docs/setup/nextjs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Initialize Spotlight within `instrumentation-client.(js|ts)`, after you've initi
2525
<TabItem label="Client">
2626
In the Browser you don't need to set `spotlight: true`, `Spotlight.init()` will automatically detect if Sentry is available and if so, hook into the SDK.
2727

28-
```javascript {3, 10-12}
28+
```javascript {3, 12-14}
2929
// instrumentation-client.(js|ts)
3030
import * as Sentry from '@sentry/nextjs';
3131
import * as Spotlight from '@spotlightjs/spotlight';

0 commit comments

Comments
 (0)