saleor-apps-redis_apl/apps/cms/next.config.js

20 lines
753 B
JavaScript
Raw Normal View History

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;
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
2023-03-20 09:25:36 +00:00
sentry: {
disableServerWebpackPlugin: !isSentryPropertiesInEnvironment,
disableClientWebpackPlugin: !isSentryPropertiesInEnvironment,
},
};
2023-03-20 09:25:36 +00:00
module.exports = withSentryConfig(module.exports, { silent: true }, { hideSourcemaps: true });