-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
44 lines (40 loc) · 1.07 KB
/
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
const { withSentryConfig } = require('@sentry/nextjs');
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: [
'perscom-development.s3.amazonaws.com',
'perscom-staging.s3.amazonaws.com',
'perscom-demo.s3.amazonaws.com',
'perscom.s3.amazonaws.com',
'ui-avatars.com',
'localhost'
],
remotePatterns: [
{
protocol: 'http',
hostname: 'localhost',
port: '9000',
pathname: '/perscom-local/**/**'
}
]
},
sentry: {
hideSourceMaps: true,
widenClientFileUpload: true,
transpileClientSDK: true,
tunnelRoute: '/monitoring',
disableLogger: true,
automaticVercelMonitors: true
}
};
const sentryWebpackPluginOptions = {
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,
silent: true
};
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true'
});
module.exports = withSentryConfig(withBundleAnalyzer(nextConfig), sentryWebpackPluginOptions);