You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide a link to the affected event from your Sentry account
Package + Version
other: sentry/nextjs
Version:
6.17.4
Description
Any _middleware.ts file inside the /pages/api directory receives sentry-related code in the outputted file. This is not the case as soon as you move this _middleware.ts file outside this api directory.
As a result the function runtime throws an error because sentry tries to access the window: