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

A simple proxy server to handle Now.sh deployments AB tests

License

Notifications You must be signed in to change notification settings

sergiodxa/now-ab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple proxy server to handle Now.sh deployments AB tests

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published