docs(nextjs): fix plugin docs for Sentry

This commit is contained in:
Luca Forstner 2023-09-26 13:12:33 +02:00 committed by Juri Strumpflohner
parent 6e7141b22c
commit 0df8293c91

View File

@ -125,7 +125,8 @@ module.exports = async (phase, context) => {
// If you have plugins that has to be added after Nx you can do that here.
// For example, Sentry needs to be added last.
updatedConfig = require('@sentry/nextjs')(updatedConfig, { silent: true });
const { withSentryConfig } = require('@sentry/nextjs');
updatedConfig = withSentryConfig(updatedConfig);
return updatedConfig;
};