feat: init sentry monitoring

This commit is contained in:
swve 2023-04-13 20:06:09 +02:00 committed by Badr B
parent 43d2b469a4
commit 137a909347
13 changed files with 1064 additions and 30 deletions

View file

@ -1,3 +1,9 @@
// 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');
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
@ -11,3 +17,9 @@ const nextConfig = {
};
module.exports = nextConfig;
module.exports = withSentryConfig(
module.exports,
{ silent: true },
{ hideSourcemaps: true },
);