Files
TaxHacker_s23/next.config.ts
2025-12-08 20:43:47 +01:00

30 lines
796 B
TypeScript

import { withSentryConfig } from "@sentry/nextjs"
import type { NextConfig } from "next"
const nextConfig: NextConfig = {
eslint: {
ignoreDuringBuilds: true, // TODO: make me linting again
},
images: {
unoptimized: true, // FIXME: bug on prod, images always empty, investigate later
},
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