NextJS Pregen Flags Demo #7058
Locked
versecafe
started this conversation in
Show & Tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A simple well documented demo of how to work with
@vercel/flags/next
with instructions on how to create new flags, how they work, and a basic setup where the Icon changes color and the footer is displayed based off arbitrary logic running in the middleware.Hope this helps anyone who was interested in the new flags architecture announced at SHIP, this helps fix a bunch of the annoyances of prior flag implementations requiring either making every page dynamic and having long TTFB or using PPR and having either skeleton animations, or handling layout shift as elements flicker and change if the flag and default are different.
Read Flag
Create New Flag
Included Example Flags
string
, red, green, blueboolean
Beta Was this translation helpful? Give feedback.
All reactions