M

fastify/5/add-expose-head-routes-option

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

This codemod introduces the exposeHeadRoutes: false option to avoid automatic HEAD route exposure, while keeping manually defined HEAD routes intact.

Before

ts

After

ts

Ready to contribute?

Build your own codemod and share it with the community.