-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
45 lines (43 loc) · 1007 Bytes
/
next.config.js
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
33
34
35
36
37
38
39
40
41
42
43
44
45
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
webpackBuildWorker: true,
},
images: {
unoptimized: true,
domains: [
"user-images.githubusercontent.com",
"s3.us-west-2.amazonaws.com",
"res.cloudinary.com",
"r2.radityaharya.com",
"www.radityaharya.com",
"radityaharya.com",
"qnhjmybhvmffhqxsggxx.supabase.co",
"www.themoviedb.org",
"image.tmdb.org",
"imgproxy.radityaharya.com",
],
minimumCacheTTL: 60,
},
};
if (process.env.SENTRY_DSN) {
const { withSentryConfig } = require("@sentry/nextjs");
console.log("Sentry enabled");
module.exports = withSentryConfig(
nextConfig,
{
silent: true,
org: "raditya-harya",
project: "showtime",
},
{
widenClientFileUpload: true,
transpileClientSDK: false,
tunnelRoute: "/monitoring",
hideSourceMaps: true,
disableLogger: true,
},
);
} else {
module.exports = nextConfig;
}