nextjs - codemons - applying code transforming to your code base


It is a very specific sets of transformation that can be applied to your code via cli commands. For example, 

npx @next/codemod@latest next-og-import .

transform import next/server to next/og for usage of Dynamic OG Image Generation.

This provides a quick way to upgrade/change your codebase without modifying each file

Others codemon can be found from this link here:


https://nextjs.org/docs/app/building-your-application/upgrading/codemods

 

 



Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm