Files
vercel__flags/apps/playground/flags.ts
Dominik Ferber c0d8224015 docs: use adapter factory shorthand (adapter: vercelAdapter) (#409)
Update docs and examples to pass the adapter factory directly
(adapter: vercelAdapter) instead of calling it (adapter: vercelAdapter()),
reflecting the AdapterOrFactory support in flag(). Applied consistently to
all zero-arg factory adapters (vercel, edge-config, custom adapter examples).

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 12:22:47 +02:00

8 lines
168 B
TypeScript

import { vercelAdapter } from '@flags-sdk/vercel';
import { flag } from 'flags/next';
export const jsonFlag = flag({
key: 'json-flag',
adapter: vercelAdapter,
});