If you're using Next.js and Vercel on your website, you can't afford not to use this service named Spectrum. Spectrum assists you in improving your website through A/B testing.
Since there is no need to duplicate code, it is easier to manage and prevents the bundle size from increasing.
Set the deployment on Vercel as a challenger, and split the access by CDN to serve the content.
You can control the start, stop, and modification of A/B tests all from this Spectrum web console.
// next.config.js
// yarn add next-with-split or npm install next-with-split
const withSplit = require('next-with-split')({})
module.export = withSplit({
// write your next.js configuration values.
})