2023-03-20 09:25:36 +00:00
|
|
|
// This file sets a custom webpack configuration to use your Next.js app
|
|
|
|
// with Sentry.
|
|
|
|
// https://nextjs.org/docs/api-reference/next.config.js/introduction
|
|
|
|
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
|
|
|
|
const { withSentryConfig } = require("@sentry/nextjs");
|
|
|
|
|
|
|
|
const isSentryPropertiesInEnvironment =
|
|
|
|
process.env.SENTRY_AUTH_TOKEN && process.env.SENTRY_PROJECT && process.env.SENTRY_ORG;
|
|
|
|
|
2023-03-16 10:17:00 +00:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
module.exports = {
|
|
|
|
reactStrictMode: true,
|
2023-03-20 09:25:36 +00:00
|
|
|
sentry: {
|
|
|
|
disableServerWebpackPlugin: !isSentryPropertiesInEnvironment,
|
|
|
|
disableClientWebpackPlugin: !isSentryPropertiesInEnvironment,
|
|
|
|
},
|
2023-03-16 10:17:00 +00:00
|
|
|
};
|
2023-03-20 09:25:36 +00:00
|
|
|
|
|
|
|
module.exports = withSentryConfig(module.exports, { silent: true }, { hideSourcemaps: true });
|