CCodemod

next/13/ab-test

No description available

next.jsmigration
Public
24 executions
Run locally
npx codemod next/13/ab-test
Documentation

This codemod generates boilerplate code for A/B tests using the Next.js middlewares. The middleware controls the redirects from the legacy to the future pages. You can control the redirection probability and targeted pages using environment variables.

Ready to contribute?

Build your own codemod and share it with the community.