A

fastify/4/expose-head-routes

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 makes exposeHeadRoutes true by default

🚦 Impact Level: Minimal

What Changed

Starting with v4, every GET route will create a sibling HEAD route. You can revert this behavior by setting exposeHeadRoutes: false in the server options.

Before

jsx

After

jsx

Ready to contribute?

Build your own codemod and share it with the community.