🐛 fix: fix azure ai runtime error (#9276)

* fix azure ai

* improve agent schema

* improve agent schema

* improve header size

* remove sentry

* remove sentry

* fix

* clean

* fix tests
This commit is contained in:
Arvin Xu
2025-09-16 15:19:55 +08:00
committed by GitHub
parent 46f2a28ee7
commit c21c14e715
21 changed files with 6529 additions and 163 deletions
+1 -37
View File
@@ -1,5 +1,4 @@
import analyzer from '@next/bundle-analyzer';
import { withSentryConfig } from '@sentry/nextjs';
import withSerwistInit from '@serwist/next';
import type { NextConfig } from 'next';
import ReactComponentName from 'react-scan/react-component-name/webpack';
@@ -326,39 +325,4 @@ const withPWA =
})
: noWrapper;
const hasSentry = !!process.env.NEXT_PUBLIC_SENTRY_DSN;
const withSentry =
isProd && hasSentry
? (c: NextConfig) =>
withSentryConfig(c, {
// Enables automatic instrumentation of Vercel Cron Monitors.
// See the following for more information:
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: true,
// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options
// Suppresses source map uploading logs during build
silent: true,
// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers. (increases server load)
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
tunnelRoute: '/monitoring',
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,
})
: noWrapper;
export default withBundleAnalyzer(withPWA(withSentry(nextConfig) as NextConfig));
export default withBundleAnalyzer(withPWA(nextConfig as NextConfig));