Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Latest commit

 

History

History
19 lines (13 loc) · 816 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 816 Bytes

now-ab

This a simple HTTP proxy server to handle Now.sh deployments AB tests.

Usage

Deploy it with

now sergiodxa/now-ab

Now will prompt you to define 2 environment variables TEST_A and TEST_B with urls (including the protocol).

When an user access this server is going to proxy the request to one of those (doing a simple random to define which one) and will set a cookie called now_ab with the user test case (TEST_A or TEST_B).

You can also add more test variables to support more test cases just adding -e TEST_C=$URL when deploying, the server will use any variable starting with TEST_ to get possible test cases.