webtools

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

next.config.ts (1510B)


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