Files
TaxHacker_s23/next.config.ts
2025-04-08 20:56:23 +02:00

27 lines
678 B
TypeScript

import { withSentryConfig } from "@sentry/nextjs"
import type { NextConfig } from "next"
const nextConfig: NextConfig = {
eslint: {
ignoreDuringBuilds: true, // TODO: fixme
},
experimental: {
serverActions: {
bodySizeLimit: "256mb",
},
},
}
const isSentryEnabled = process.env.NEXT_PUBLIC_SENTRY_DSN && process.env.SENTRY_ORG && process.env.SENTRY_PROJECT
export default isSentryEnabled
? withSentryConfig(nextConfig, {
silent: !process.env.CI,
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
disableLogger: true,
widenClientFileUpload: true,
tunnelRoute: "/monitoring",
})
: nextConfig