This fixes this error when executing particular e2e test with playwright extension <img width="347" alt="image" src="https://github.com/user-attachments/assets/5f7608fc-7896-4014-b312-a0c36f21b7d1">
6 lines
172 B
TypeScript
6 lines
172 B
TypeScript
export async function register() {
|
|
if (process.env.NEXT_RUNTIME === 'nodejs' && process.env.NEXT_PUBLIC_SENTRY_DSN) {
|
|
await import('./sentry.server.config.js')
|
|
}
|
|
}
|