next.config.ts (1487B)
1 import {withSentryConfig} from "@sentry/nextjs"; 2 import type { NextConfig } from "next"; 3 4 const nextConfig: NextConfig = { 5 experimental: { 6 useTypeScriptCli: true, 7 }, 8 /* config options here */ 9 }; 10 11 export default withSentryConfig(nextConfig, { 12 // For all available options, see: 13 // https://www.npmjs.com/package/@sentry/webpack-plugin#options 14 15 org: "minerva-juppiter", 16 17 project: "aidentity", 18 19 // Only print logs for uploading source maps in CI 20 silent: !process.env.CI, 21 22 // For all available options, see: 23 // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/ 24 25 // Upload a larger set of source maps for prettier stack traces (increases build time) 26 widenClientFileUpload: true, 27 28 // Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers. 29 // This can increase your server load as well as your hosting bill. 30 // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client- 31 // side errors will fail. 32 tunnelRoute: "/monitoring", 33 34 // Automatically tree-shake Sentry logger statements to reduce bundle size 35 disableLogger: true, 36 37 // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.) 38 // See the following for more information: 39 // https://docs.sentry.io/product/crons/ 40 // https://vercel.com/docs/cron-jobs 41 automaticVercelMonitors: true 42 });