-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move instrumentation into src directory. Add webpack config in Next c…
…onfig to ignore the dependency warning
- Loading branch information
Showing
4 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
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"); | ||
} | ||
|
||
if (process.env.NEXT_RUNTIME === "nodejs") { | ||
await import("./instrumentation/tracer"); | ||
} | ||
} |
File renamed without changes.