16 lines
348 B
JavaScript
16 lines
348 B
JavaScript
let withSentryConfig = null;
|
|
try {
|
|
// Optional dependency: only wrap if @sentry/nextjs is installed.
|
|
({ withSentryConfig } = require("@sentry/nextjs"));
|
|
} catch {
|
|
withSentryConfig = null;
|
|
}
|
|
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
};
|
|
|
|
module.exports = withSentryConfig
|
|
? withSentryConfig(nextConfig, { silent: true })
|
|
: nextConfig;
|