A Cloudflare Workers application, that will randomly send users to one of two webpages in A/B testing style, where the redirection URL is obtained using the Fetch API.
The Workers Quick Start in the documentation shows how to get started with Wrangler, creating a project, and configuring and deploying it. We highly recommend that you spend time reading and following along with this guide!
To begin, install the Wrangler command-line tool.
Using wrangler's publish
command, you can deploy your application and make it available under your workers.dev subdomain.