Skip to content

Commit

Permalink
Iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Oct 2, 2024
1 parent c1082aa commit 7459aad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion web-app/src/app/global-error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export default function GlobalError({ error }: { error: Error & { digest?: strin
</body>
</html>
);
}
}
4 changes: 2 additions & 2 deletions web-app/src/app/sentry-example-page/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export default function Page() {
}}
onClick={async () => {
await Sentry.startSpan({
name: 'Example Frontend Span',
op: 'test'
name: "Example Frontend Span",
op: "test",
}, async () => {
const res = await fetch("/api/sentry-example-api");
if (!res.ok) {
Expand Down
10 changes: 5 additions & 5 deletions web-app/src/instrumentation.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as Sentry from '@sentry/nextjs';
import * as Sentry from "@sentry/nextjs";

export async function register() {
if (process.env.NEXT_RUNTIME === 'nodejs') {
await import('../sentry.server.config');
if (process.env.NEXT_RUNTIME === "nodejs") {
await import("../sentry.server.config");
}

if (process.env.NEXT_RUNTIME === 'edge') {
await import('../sentry.edge.config');
if (process.env.NEXT_RUNTIME === "edge") {
await import("../sentry.edge.config");
}
}

Expand Down

0 comments on commit 7459aad

Please sign in to comment.