-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
32 lines (27 loc) · 961 Bytes
/
next.config.ts
File metadata and controls
32 lines (27 loc) · 961 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
30
31
32
/** @type {import('next').NextConfig} */
import { withSentryConfig } from "@sentry/nextjs";
const nextConfig = {
images: {
// include quality 90 (and others if desired). Next.js 16 will require configured qualities.
qualities: [90],
},
};
// Make sure adding Sentry options is the last code to run before exporting
// When DISABLE_SENTRY_SOURCEMAP_UPLOAD=1 we avoid passing an auth token so
// source-map uploads are effectively disabled.
const sentryAuthToken =
process.env.DISABLE_SENTRY_SOURCEMAP_UPLOAD === "1"
? undefined
: process.env.SENTRY_AUTH_TOKEN;
export default withSentryConfig(nextConfig, {
org: "captogether",
project: "nextjs15-repair-shop",
// An auth token is required for uploading source maps. Only provide it
// when uploads are allowed.
authToken: sentryAuthToken,
silent: false, // Can be used to suppress logs
sourcemaps: {
deleteSourcemapsAfterUpload: true,
},
disableLogger: true,
});