Home / Companies / Vercel / Blog / Post Details
Content Deep Dive

Flags as code in Next.js

Blog post from Vercel

Post Details
Company
Date Published
Author
Dominik Ferber
Word Count
2,929
Language
English
Hacker News Points
-
Summary

The article discusses the usage of feature flags in Next.js using Vercel's Flags SDK. It introduces a new Flags SDK that works with any feature flag provider or when no flag provider is used, and explains how it can be integrated into applications to follow best practices for using feature flags and experiments while keeping websites fast. The article also provides examples of basic usage, overriding from Vercel Toolbar, using environment variables, Edge Config, and feature flag providers. It concludes by stating that the Flags SDK allows developers to choose the right tradeoff for each feature flag without having to refactor the code actually using the flags.