Middleware

This demo is easiest to understand if you open its source code in a parallel tab.

Source code

This demo shows how to use @happykit/flags in middleware.

You have been served the "short" checkout variant.

Since this page is served statically from the edge, rendering will use no visitor key. This is necessary as the the concept of a visitor does not exist during static site generation. Thus all rules and percentage-based rollouts targeting a visitor resolve to null.