message: fix(nextjs): Don't write to `res.end` to fix `next export`
diff: @@ -31,7 +31,8 @@ export function autoEndTransactionOnResponseEnd(transaction: Transaction, res: S
  };
  // Prevent double-wrapping
  - if (!(res.end as WrappedResponseEndMethod).__sentry_original__) {
  + // res.end may be undefined during build when using `next export` to statically export a Next.js app
  + if (res.end && !(res.end as WrappedResponseEndMethod).__sentry_original__) {
  fill(res, 'end', wrapEndMethod);
  }
  }
  