-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.build.js
46 lines (41 loc) · 986 Bytes
/
next.config.build.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
46
// This config file contains only the necessary next config needed in production
const { withSentryConfig } = require("@sentry/nextjs");
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
instrumentationHook: true,
},
images: {
remotePatterns: [
// User avatars
{
hostname: "*.googleusercontent.com",
pathname: "**",
protocol: "https",
},
{
hostname: "secure.gravatar.com",
protocol: "https",
},
{
hostname: "*.slack-edge.com",
protocol: "https",
},
],
},
};
const sentryWebpackPluginOptions = {
org: "ystv",
project: "internal-site",
};
const sentryOptions = {
// Upload additional client files (increases upload size)
widenClientFileUpload: true,
// Hides source maps from generated client bundles
hideSourceMaps: true,
};
module.exports = withSentryConfig(
nextConfig,
sentryWebpackPluginOptions,
sentryOptions,
);