# Vercel — Flags as code in Next.js

- Company: Vercel (vercel.com)
- Announced: 2024-07-26T13:00:00+00:00
- Category: developer-tool-release
- Coverage: not counted
- Announcement: yes
- Group: announcements
- Source: https://vercel.com/blog/flags-as-code-in-next-js
- Record: https://forck.live/items/20965-flags-as-code-in-next-js
- Subject: v0 / AI SDK / AI Gateway

Vercel introduced a Flags SDK for Next.js and SvelteKit that treats feature flags as server-side functions, enabling precomputed static pages and provider-agnostic flag management.

## Evidence

Verbatim from https://vercel.com/blog/flags-as-code-in-next-js:

> We recently introduced a new Flags SDK that allows using feature flags, in Next.js and SvelteKit, and works with any feature flag provider—or when using no flag provider at all.

---

Record: https://forck.live/items/20965-flags-as-code-in-next-js
Catalogue: https://forck.live/llms.txt
Current issue: https://forck.live/feed.md
