🔧 Update sentry config (#1196)

This commit is contained in:
Luke Vella 2024-07-04 12:15:01 +01:00 committed by GitHub
parent 6df4405cf4
commit 43ead55892
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 44 additions and 7 deletions

View file

@ -0,0 +1,9 @@
export async function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
await import("../sentry.server.config");
}
if (process.env.NEXT_RUNTIME === "edge") {
await import("../sentry.edge.config");
}
}