Skip to content
/ now-ab Public
forked from sergiodxa/now-ab

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

License

Notifications You must be signed in to change notification settings

rodilo/now-ab

This branch is up to date with sergiodxa/now-ab:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 26, 2019
ac18700 · Jan 26, 2019

History

11 Commits
Sep 16, 2017
Sep 16, 2017
Jan 26, 2019
Jun 1, 2018
Jun 1, 2018
Jun 1, 2018
Jun 1, 2018

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%