forked from vas3k/TaxHacker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
29 lines (26 loc) · 796 Bytes
/
Copy pathnext.config.ts
File metadata and controls
29 lines (26 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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