mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 13:25:18 +00:00
30 lines
796 B
TypeScript
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
|