Static Site Generation (Pure)

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 for static pages.

Since this page is only rendered statically, the rendering will use no visitor key. This is necessary as 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.

Render #1 (Current render)
{ ads: true, checkout: null, discount: 5, purchaseButtonLabel: null }