You need to be careful about the final reduce, since you're passing the silent property to every single plugin. You're also missing a closing parenthesis on the next() call.
returnplugins.reduce((acc,next)=>{if(next.name==='withSentryConfig'){returnnext(acc,{silent:true});}returnnext(acc);},{// the rest of next.js config});
How about this? 👆
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You need to be careful about the final
reduce
, since you're passing thesilent
property to every single plugin. You're also missing a closing parenthesis on thenext()
call.How about this? 👆