Skip to content

Commit d5bdcdb

Browse files
Re-enable sourcemap uploading to Sentry in builds (#148)
1 parent e3c4d32 commit d5bdcdb

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,6 @@ next-env.d.ts
4848
# Sentry Auth Token
4949
.sentryclirc
5050

51-
certificates
51+
certificates
52+
# Sentry Config File
53+
.env.sentry-build-plugin

next.config.build.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// This config file contains only the necessary next config needed in production
2+
const { withSentryConfig } = require("@sentry/nextjs");
3+
24
/** @type {import('next').NextConfig} */
35
const nextConfig = {
46
experimental: {
@@ -24,4 +26,21 @@ const nextConfig = {
2426
},
2527
};
2628

27-
module.exports = nextConfig;
29+
const sentryWebpackPluginOptions = {
30+
org: "ystv",
31+
project: "calendar2023",
32+
};
33+
34+
const sentryOptions = {
35+
// Upload additional client files (increases upload size)
36+
widenClientFileUpload: true,
37+
38+
// Hides source maps from generated client bundles
39+
hideSourceMaps: true,
40+
};
41+
42+
module.exports = withSentryConfig(
43+
nextConfig,
44+
sentryWebpackPluginOptions,
45+
sentryOptions,
46+
);

0 commit comments

Comments
 (0)