feat(frontend): add sentry

This commit is contained in:
Sam 2022-09-16 10:20:09 +02:00
parent 4a8e1bb54f
commit 220e8fa71d
10 changed files with 617 additions and 25 deletions

View file

@ -1,3 +1,5 @@
const { withSentryConfig } = require("@sentry/nextjs");
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
@ -10,6 +12,13 @@ const nextConfig = {
},
];
},
sentry: {
hideSourceMaps: true,
},
};
module.exports = nextConfig;
const sentryWebpackPluginOptions = {
silent: true, // Suppresses all logs
};
module.exports = withSentryConfig(nextConfig, sentryWebpackPluginOptions);