Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ next-env.d.ts
# Sentry Auth Token
.sentryclirc

certificates
certificates
# Sentry Config File
.env.sentry-build-plugin
21 changes: 20 additions & 1 deletion next.config.build.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// This config file contains only the necessary next config needed in production
const { withSentryConfig } = require("@sentry/nextjs");

/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
Expand All @@ -24,4 +26,21 @@ const nextConfig = {
},
};

module.exports = nextConfig;
const sentryWebpackPluginOptions = {
org: "ystv",
project: "calendar2023",
};

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,
);
Loading