C

next/13/remove-next-export

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

The next export command is deprecated. This codemod dangerously removes all references to the command in *.md, *.sh, package.json. It also adds a property output with the value export to the module.exports object in next.config.js files.

Example

Before (Shell files):

sh

After (Shell files):

sh

Before (next.config.js files):

javascript

After (next.config.js files):

javascript

Ready to contribute?

Build your own codemod and share it with the community.