-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
48 lines (43 loc) · 1.12 KB
/
next.config.js
File metadata and controls
48 lines (43 loc) · 1.12 KB
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
46
47
48
const { withSentryConfig } = require('@sentry/nextjs')
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'upload.wikimedia.org',
},
{
protocol: 'https',
hostname: 'lh3.googleusercontent.com',
},
{
protocol: 'https',
hostname: 'zlgokxtwk5h4usda.public.blob.vercel-storage.com',
},
],
unoptimized: true,
},
}
if (process.env.NEXT_EXPORT_TYPE === 'export') {
nextConfig.output = 'export'
}
// Only apply Sentry config in production
const isProduction = process.env.NODE_ENV === 'production'
module.exports = isProduction
? withSentryConfig(nextConfig, {
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
//silent: !process.env.CI,
//disableLogger: true,
// Pass the auth token
authToken: process.env.SENTRY_AUTH_TOKEN,
// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,
reactComponentAnnotation: {
enabled: true,
},
})
: nextConfig