Skip to content

Commit

Permalink
feat: update next config
Browse files Browse the repository at this point in the history
  • Loading branch information
baptadn committed Sep 26, 2023
1 parent 3196c47 commit 3ea6be4
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const { withSentryConfig } = require("@sentry/nextjs");
const withMDX = require("@next/mdx")({
extension: /\.(md|mdx)$/,
});
Expand All @@ -8,13 +7,5 @@ const configWithMDX = withMDX({
// Pick up MDX files in the /pages/ directory
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"],
});
const SentryWebpackPluginOptions = {
silent: true,
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options.
};
module.exports = removeImports(
process.env.SENTRY_AUTH_TOKEN
? withSentryConfig(configWithMDX, SentryWebpackPluginOptions)
: configWithMDX
);

module.exports = removeImports(configWithMDX);

0 comments on commit 3ea6be4

Please sign in to comment.