Next Js + Sanity blog deploy error

How to fix this error -

Error: Asset "node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node" is over the 25MiB limit.

Error: Asset “node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node” is over the 25MiB limit. Size: 35713400 bytes

Unless I’m missing something, why would node_modules be in your output folder to be deployed?

2 Likes