Delivery
Select variants on the server
Official middleware for Next.js and Astro selects a variant from its weight and uses a cookie to keep the visitor on the same experience across visits.
Selection happens before rendering, avoiding the flicker and layout shifts associated with client-side testing scripts.