@sentry/wizard
Version:
Sentry wizard helping you to configure your project
22 lines (19 loc) • 577 B
JavaScript
// 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');
module.exports = (phase, { defaultConfig }) => {
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
/* config options here */
};
return nextConfig;
};
module.exports = withSentryConfig(
module.exports,
{ silent: true },
{ hideSourceMaps: true },
);